Sprout/sprout/utility/as_lvalue.hpp

23 lines
418 B
C++
Raw Normal View History

2012-04-05 05:54:23 +00:00
#ifndef SPROUT_UTILITY_AS_LVALUE_HPP
#define SPROUT_UTILITY_AS_LVALUE_HPP
#include <sprout/config.hpp>
namespace sprout {
//
// as_lvalue
//
template<typename T>
2012-07-07 05:58:46 +00:00
inline SPROUT_CONSTEXPR T&
as_lvalue(T& t) {
2012-04-05 05:54:23 +00:00
return t;
}
template<typename T>
2012-07-07 05:58:46 +00:00
inline SPROUT_CONSTEXPR T const&
as_lvalue(T const& t) {
2012-04-05 05:54:23 +00:00
return t;
}
} // namespace sprout
#endif // #ifndef SPROUT_UTILITY_AS_LVALUE_HPP