Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (22 sloc) 796 Bytes
// TL library - A collection of small C++ utilities
// Written in 2017 by Simon Brand (@TartanLlama)
// To the extent possible under law, the author(s) have dedicated all
// copyright and related and neighboring rights to this software to the
// public domain worldwide. This software is distributed without any warranty.
// You should have received a copy of the CC0 Public Domain Dedication
// along with this software. If not, see <>.
// An implementation of decay_copy:
#include <type_traits>
#include <utility>
namespace tl {
template <class T>
typename std::decay<T>::type
decay_copy (T&& t) {
return std::forward<T>(t);
You can’t perform that action at this time.