My Project
Typedefs
detected_or.hpp File Reference
#include "details/detector.hpp"

Go to the source code of this file.

Typedefs

template<class Default , template< class... > class Op, class... Args>
using bsl::detected_or = details::detector< Default, void, Op, Args... >
 The alias template detected_or is an alias for an unspecified class type with two public member typedefs value_t and type, which are defined as follows: More...
 
template<typename Default , template< class... > class Op, typename... Args>
using bsl::detected_or_t = typename details::detector< Default, void, Op, Args... >::type
 a helper that reduces the verbosity of bsl::detected_or
 

Detailed Description

Typedef Documentation

◆ detected_or

template<class Default , template< class... > class Op, class... Args>
using bsl::detected_or = typedef details::detector<Default, void, Op, Args...>

The alias template detected_or is an alias for an unspecified class type with two public member typedefs value_t and type, which are defined as follows:

  • If the template-id OP<ARGS...> denotes a valid type, then value_t is an alias for bsl::true_type, and type is an alias for OP<ARGS...>;
  • Otherwise, value_t is an alias for bsl::false_type and type is an alias for DEFAULT.