Lines Matching full: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;
128 class _LIBCPP_TEMPLATE_VIS any;
133 any_cast(any const *) _NOEXCEPT;
137 add_pointer_t<_ValueType> any_cast(any *) _NOEXCEPT;
193 class _LIBCPP_TEMPLATE_VIS any
198 constexpr any() _NOEXCEPT : __h_(nullptr) {}
201 any(any const & __other) : __h_(nullptr)
207 any(any && __other) _NOEXCEPT : __h_(nullptr)
216 !is_same<_Tp, any>::value &&
221 any(_ValueType && __value);
231 explicit any(in_place_type_t<_ValueType>, _Args&&... __args);
240 explicit any(in_place_type_t<_ValueType>, initializer_list<_Up>, _Args&&... __args);
243 ~any() { this->reset(); }
247 any & operator=(any const & __rhs) {
248 any(__rhs).swap(*this);
253 any & operator=(any && __rhs) _NOEXCEPT {
254 any(_VSTD::move(__rhs)).swap(*this);
262 !is_same<_Tp, any>::value
266 any & operator=(_ValueType && __rhs);
286 // 6.3.3 any modifiers
291 void swap(any & __rhs) _NOEXCEPT;
293 // 6.3.4 any observers
310 using _HandleFuncPtr = void* (*)(_Action, any const *, any *, const type_info *,
320 void * __call(_Action __a, any * __other = nullptr,
328 void * __call(_Action __a, any * __other = nullptr,
342 any_cast(any const *) _NOEXCEPT;
346 any_cast(any *) _NOEXCEPT;
358 static void* __handle(_Action __act, any const * __this, any * __other,
364 __destroy(const_cast<any &>(*__this));
370 __move(const_cast<any &>(*__this), *__other);
373 return __get(const_cast<any &>(*__this), __info, __fallback_info);
382 static _Tp& __create(any & __dest, _Args&&... __args) {
394 static void __destroy(any & __this) {
404 static void __copy(any const & __this, any & __dest) {
410 static void __move(any & __this, any & __dest) {
417 static void* __get(any & __this,
441 static void* __handle(_Action __act, any const * __this,
442 any * __other, type_info const * __info,
448 __destroy(const_cast<any &>(*__this));
454 __move(const_cast<any &>(*__this), *__other);
457 return __get(const_cast<any &>(*__this), __info, __fallback_info);
466 static _Tp& __create(any & __dest, _Args&&... __args) {
482 static void __destroy(any & __this){
493 static void __copy(any const & __this, any & __dest) {
498 static void __move(any & __this, any & __dest) {
505 static void* __get(any & __this, type_info const * __info,
529 any::any(_ValueType && __v) : __h_(nullptr)
535 any::any(in_place_type_t<_ValueType>, _Args&&... __args) {
540 any::any(in_place_type_t<_ValueType>, initializer_list<_Up> __il, _Args&&... __args) {
546 any & any::operator=(_ValueType && __v)
548 any(_VSTD::forward<_ValueType>(__v)).swap(*this);
554 _Tp& any::emplace(_Args&&... __args) {
561 _Tp& any::emplace(initializer_list<_Up> __il, _Args&&... __args) {
567 void any::swap(any & __rhs) _NOEXCEPT
572 any __tmp;
588 void swap(any & __lhs, any & __rhs) _NOEXCEPT
595 any make_any(_Args&&... __args) {
596 return any(in_place_type<_Tp>, _VSTD::forward<_Args>(__args)...);
601 any make_any(initializer_list<_Up> __il, _Args&&... __args) {
602 return any(in_place_type<_Tp>, __il, _VSTD::forward<_Args>(__args)...);
608 _ValueType any_cast(any const & __v)
623 _ValueType any_cast(any & __v)
638 _ValueType any_cast(any && __v)
653 any_cast(any const * __any) _NOEXCEPT
657 return _VSTD::any_cast<_ValueType>(const_cast<any *>(__any));
675 any_cast(any * __any) _NOEXCEPT