Lines Matching refs:any
14 any synopsis
24 class any
28 // 6.3.1 any construct/destruct
29 any() noexcept;
31 any(const any& other);
32 any(any&& other) noexcept;
35 any(ValueType&& value);
37 ~any();
39 // 6.3.2 any assignments
40 any& operator=(const any& rhs);
41 any& operator=(any&& rhs) noexcept;
44 any& operator=(ValueType&& rhs);
46 // 6.3.3 any modifiers
52 void swap(any& rhs) noexcept;
54 // 6.3.4 any observers
60 void swap(any& x, any& y) noexcept;
63 any make_any(Args&& ...args);
65 any make_any(initializer_list<U>, Args&& ...args);
68 ValueType any_cast(const any& operand);
70 ValueType any_cast(any& operand);
72 ValueType any_cast(any&& operand);
75 const ValueType* any_cast(const any* operand) noexcept;
77 ValueType* any_cast(any* operand) noexcept;
129 class _LIBCPP_TEMPLATE_VIS any;
134 any_cast(any const *) _NOEXCEPT;
138 add_pointer_t<_ValueType> any_cast(any *) _NOEXCEPT;
192 class _LIBCPP_TEMPLATE_VIS any
197 constexpr any() _NOEXCEPT : __h(nullptr) {}
200 any(any const & __other) : __h(nullptr)
206 any(any && __other) _NOEXCEPT : __h(nullptr)
215 !is_same<_Tp, any>::value &&
220 any(_ValueType && __value);
230 explicit any(in_place_type_t<_ValueType>, _Args&&... __args);
239 explicit any(in_place_type_t<_ValueType>, initializer_list<_Up>, _Args&&... __args);
242 ~any() { this->reset(); }
246 any & operator=(any const & __rhs) {
247 any(__rhs).swap(*this);
252 any & operator=(any && __rhs) _NOEXCEPT {
253 any(_VSTD::move(__rhs)).swap(*this);
261 !is_same<_Tp, any>::value
265 any & operator=(_ValueType && __rhs);
285 // 6.3.3 any modifiers
290 void swap(any & __rhs) _NOEXCEPT;
292 // 6.3.4 any observers
309 using _HandleFuncPtr = void* (*)(_Action, any const *, any *, const type_info *,
319 void * __call(_Action __a, any * __other = nullptr,
327 void * __call(_Action __a, any * __other = nullptr,
341 any_cast(any const *) _NOEXCEPT;
345 any_cast(any *) _NOEXCEPT;
357 static void* __handle(_Action __act, any const * __this, any * __other,
363 __destroy(const_cast<any &>(*__this));
369 __move(const_cast<any &>(*__this), *__other);
372 return __get(const_cast<any &>(*__this), __info, __fallback_info);
381 static _Tp& __create(any & __dest, _Args&&... __args) {
393 static void __destroy(any & __this) {
403 static void __copy(any const & __this, any & __dest) {
409 static void __move(any & __this, any & __dest) {
416 static void* __get(any & __this,
440 static void* __handle(_Action __act, any const * __this,
441 any * __other, type_info const * __info,
447 __destroy(const_cast<any &>(*__this));
453 __move(const_cast<any &>(*__this), *__other);
456 return __get(const_cast<any &>(*__this), __info, __fallback_info);
465 static _Tp& __create(any & __dest, _Args&&... __args) {
481 static void __destroy(any & __this){
492 static void __copy(any const & __this, any & __dest) {
497 static void __move(any & __this, any & __dest) {
504 static void* __get(any & __this, type_info const * __info,
528 any::any(_ValueType && __v) : __h(nullptr)
534 any::any(in_place_type_t<_ValueType>, _Args&&... __args) {
539 any::any(in_place_type_t<_ValueType>, initializer_list<_Up> __il, _Args&&... __args) {
545 any & any::operator=(_ValueType && __v)
547 any(_VSTD::forward<_ValueType>(__v)).swap(*this);
553 _Tp& any::emplace(_Args&&... __args) {
560 _Tp& any::emplace(initializer_list<_Up> __il, _Args&&... __args) {
566 void any::swap(any & __rhs) _NOEXCEPT
571 any __tmp;
587 void swap(any & __lhs, any & __rhs) _NOEXCEPT
594 any make_any(_Args&&... __args) {
595 return any(in_place_type<_Tp>, _VSTD::forward<_Args>(__args)...);
600 any make_any(initializer_list<_Up> __il, _Args&&... __args) {
601 return any(in_place_type<_Tp>, __il, _VSTD::forward<_Args>(__args)...);
607 _ValueType any_cast(any const & __v)
622 _ValueType any_cast(any & __v)
637 _ValueType any_cast(any && __v)
652 any_cast(any const * __any) _NOEXCEPT
656 return _VSTD::any_cast<_ValueType>(const_cast<any *>(__any));
674 any_cast(any * __any) _NOEXCEPT