My Project
declval.hpp
Go to the documentation of this file.
1 
28 #ifndef BSL_DECLVAL_HPP
29 #define BSL_DECLVAL_HPP
30 
31 #include "add_rvalue_reference.hpp"
32 
33 namespace bsl
34 {
46  template<typename T>
47  constexpr add_rvalue_reference_t<T> declval() noexcept;
48 }
49 
50 #endif
constexpr add_rvalue_reference_t< T > declval() noexcept
Converts any type T to a reference type, making it possible to use member functions in decltype expre...