cppx-core
only_lvalue_ref_to.hpp
Go to the documentation of this file.
1 #pragma once // Source encoding: UTF-8 with BOM (π is a lowercase Greek "pi").
2 
5 namespace cppx
6 {
8  template< class Type >
9  inline auto only_lvalue_ref_to( Type& c )
10  -> Type&
11  { return c; }
12 
13 } // namespace cppx
auto only_lvalue_ref_to(Type &c) -> Type &
A helper for restricting macro arguments, used e.g. in $items_of.