openMSX
Static Public Member Functions | Static Public Attributes | List of all members
opt_impl::has_overloaded_addressof< T > Struct Template Reference

#include <optional.hh>

Static Public Member Functions

template<typename X >
static constexpr bool has_overload (...)
 
template<typename X , size_t S = sizeof(std::declval<X&>().operator&())>
static constexpr bool has_overload (bool)
 

Static Public Attributes

static constexpr bool value = has_overload<T>(true)
 

Detailed Description

template<typename T>
struct opt_impl::has_overloaded_addressof< T >

Definition at line 71 of file optional.hh.

Member Function Documentation

◆ has_overload() [1/2]

template<typename T >
template<typename X >
static constexpr bool opt_impl::has_overloaded_addressof< T >::has_overload (   ...)
inlinestatic

Definition at line 72 of file optional.hh.

◆ has_overload() [2/2]

template<typename T >
template<typename X , size_t S = sizeof(std::declval<X&>().operator&())>
static constexpr bool opt_impl::has_overloaded_addressof< T >::has_overload ( bool  )
inlinestatic

Definition at line 78 of file optional.hh.

Member Data Documentation

◆ value

template<typename T >
constexpr bool opt_impl::has_overloaded_addressof< T >::value = has_overload<T>(true)
static

Definition at line 83 of file optional.hh.


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