Classes |
struct | IsInPlaceType |
struct | IsInPlaceType< in_place_type_t< T > > |
class | Obj |
class | ObjInterface |
Public Member Functions |
constexpr | any () noexcept = default |
| any (const any &other) |
| any (any &&other) noexcept |
template<typename T , typename VT = absl::decay_t<T>, absl::enable_if_t<!absl::disjunction< std::is_same< any, VT >, IsInPlaceType< VT >, absl::negation< std::is_copy_constructible< VT > > >::value > * = nullptr> |
| any (T &&value) |
template<typename T , typename... Args, typename VT = absl::decay_t<T>, absl::enable_if_t< absl::conjunction< std::is_copy_constructible< VT >, std::is_constructible< VT, Args...>>::value > * = nullptr> |
| any (in_place_type_t< T >, Args &&...args) |
template<typename T , typename U , typename... Args, typename VT = absl::decay_t<T>, absl::enable_if_t< absl::conjunction< std::is_copy_constructible< VT >, std::is_constructible< VT, std::initializer_list< U > &, Args...>>::value > * = nullptr> |
| any (in_place_type_t< T >, std::initializer_list< U > ilist, Args &&...args) |
template<typename T , typename... Args, typename VT = absl::decay_t<T>, absl::enable_if_t< std::is_copy_constructible< VT >::value &&std::is_constructible< VT, Args...>::value > * = nullptr> |
VT & | emplace (Args &&...args) |
template<typename T , typename U , typename... Args, typename VT = absl::decay_t<T>, absl::enable_if_t< std::is_copy_constructible< VT >::value &&std::is_constructible< VT, std::initializer_list< U > &, Args...>::value > * = nullptr> |
VT & | emplace (std::initializer_list< U > ilist, Args &&...args) |
bool | has_value () const noexcept |
any & | operator= (const any &rhs) |
any & | operator= (any &&rhs) noexcept |
template<typename T , typename VT = absl::decay_t<T>, absl::enable_if_t< absl::conjunction< absl::negation< std::is_same< VT, any >>, std::is_copy_constructible< VT >>::value > * = nullptr> |
any & | operator= (T &&rhs) |
void | reset () noexcept |
void | swap (any &other) noexcept |
const std::type_info & | type () const noexcept |
Private Member Functions |
std::unique_ptr< ObjInterface > | CloneObj () const |
const void * | GetObjTypeId () const |
Static Private Member Functions |
template<typename T > |
static constexpr const void * | IdForType () |
Private Attributes |
std::unique_ptr< ObjInterface > | obj_ |
Friends |
template<typename ValueType > |
ValueType | any_cast (const any &operand) |
template<typename ValueType > |
ValueType | any_cast (any &operand) |
template<typename T > |
const T * | any_cast (const any *operand) noexcept |
template<typename T > |
T * | any_cast (any *operand) noexcept |
Definition at line 214 of file any.h.
template<typename T , typename U , typename... Args, typename VT = absl::decay_t<T>, absl::enable_if_t< absl::conjunction< std::is_copy_constructible< VT >, std::is_constructible< VT, std::initializer_list< U > &, Args...>>::value > * = nullptr>
absl::any::any |
( |
in_place_type_t< T > |
, |
|
|
std::initializer_list< U > |
ilist, |
|
|
Args &&... |
args |
|
) |
| [inline, explicit] |
template<typename T , typename U , typename... Args, typename VT = absl::decay_t<T>, absl::enable_if_t< std::is_copy_constructible< VT >::value &&std::is_constructible< VT, std::initializer_list< U > &, Args...>::value > * = nullptr>