My Project
Functions
declval.hpp File Reference
#include "add_rvalue_reference.hpp"

Go to the source code of this file.

Functions

template<typename T >
constexpr add_rvalue_reference_t< T > bsl::declval () noexcept
 Converts any type T to a reference type, making it possible to use member functions in decltype expressions without the need to go through constructors. More...
 

Detailed Description

Function Documentation

◆ declval()

template<typename T >
constexpr add_rvalue_reference_t<T> bsl::declval ( )
noexcept

Converts any type T to a reference type, making it possible to use member functions in decltype expressions without the need to go through constructors.

Template Parameters
Tthe type T to get a reference type from
Returns
Cannot be called and thus never returns a value. The return type is T&& unless T is (possibly cv-qualified) void, in which case the return type is T.