My Project
Public Types | List of all members
bsl::decay< T, IS_ARRAY, IS_FUNCTION > Class Template Referencefinal

Applies lvalue-to-rvalue, array-to-pointer, and function-to-pointer implicit conversions to the type T, removes cv-qualifiers, and defines the resulting type as the member typedef type. More...

#include <decay.hpp>

Public Types

using type = remove_cv_t< remove_reference_t< T > >
 provides the member typedef "type"
 

Detailed Description

template<typename T, bool IS_ARRAY = is_array<remove_reference_t<T>>::value, bool IS_FUNCTION = is_function<remove_reference_t<T>>::value>
class bsl::decay< T, IS_ARRAY, IS_FUNCTION >

Applies lvalue-to-rvalue, array-to-pointer, and function-to-pointer implicit conversions to the type T, removes cv-qualifiers, and defines the resulting type as the member typedef type.

#include <bsl/decay.hpp>
#include <bsl/is_same.hpp>
#include <bsl/debug.hpp>
namespace bsl
{
inline void
example_decay_overview() noexcept
{
bsl::print() << "success\n";
}
}
}
Template Parameters
Tthe type to decay

The documentation for this class was generated from the following file: