• Home
  • Raw
  • Download

Lines Matching full:any

2 //===------------------------------ any -----------------------------------===//
15 any synopsis
25 class any
29 // 6.3.1 any construct/destruct
30 any() noexcept;
32 any(const any& other);
33 any(any&& other) noexcept;
36 any(ValueType&& value);
38 ~any();
40 // 6.3.2 any assignments
41 any& operator=(const any& rhs);
42 any& operator=(any&& rhs) noexcept;
45 any& operator=(ValueType&& rhs);
47 // 6.3.3 any modifiers
53 void swap(any& rhs) noexcept;
55 // 6.3.4 any observers
61 void swap(any& x, any& y) noexcept;
64 any make_any(Args&& ...args);
66 any make_any(initializer_list<U>, Args&& ...args);
69 ValueType any_cast(const any& operand);
71 ValueType any_cast(any& operand);
73 ValueType any_cast(any&& operand);
76 const ValueType* any_cast(const any* operand) noexcept;
78 ValueType* any_cast(any* operand) noexcept;
120 class _LIBCPP_TEMPLATE_VIS any;
125 any_cast(any const *) _NOEXCEPT;
129 add_pointer_t<_ValueType> any_cast(any *) _NOEXCEPT;
183 class _LIBCPP_TEMPLATE_VIS any
188 constexpr any() _NOEXCEPT : __h(nullptr) {}
191 any(any const & __other) : __h(nullptr)
197 any(any && __other) _NOEXCEPT : __h(nullptr)
206 !is_same<_Tp, any>::value &&
211 any(_ValueType && __value);
221 explicit any(in_place_type_t<_ValueType>, _Args&&... __args);
230 explicit any(in_place_type_t<_ValueType>, initializer_list<_Up>, _Args&&... __args);
233 ~any() { this->reset(); }
237 any & operator=(any const & __rhs) {
238 any(__rhs).swap(*this);
243 any & operator=(any && __rhs) _NOEXCEPT {
244 any(_VSTD::move(__rhs)).swap(*this);
252 !is_same<_Tp, any>::value
256 any & operator=(_ValueType && __rhs);
276 // 6.3.3 any modifiers
281 void swap(any & __rhs) _NOEXCEPT;
283 // 6.3.4 any observers
300 using _HandleFuncPtr = void* (*)(_Action, any const *, any *, const type_info *,
310 void * __call(_Action __a, any * __other = nullptr,
318 void * __call(_Action __a, any * __other = nullptr,
332 any_cast(any const *) _NOEXCEPT;
336 any_cast(any *) _NOEXCEPT;
348 static void* __handle(_Action __act, any const * __this, any * __other,
354 __destroy(const_cast<any &>(*__this));
360 __move(const_cast<any &>(*__this), *__other);
363 return __get(const_cast<any &>(*__this), __info, __fallback_info);
371 static _Tp& __create(any & __dest, _Args&&... __args) {
379 static void __destroy(any & __this) {
386 static void __copy(any const & __this, any & __dest) {
392 static void __move(any & __this, any & __dest) {
399 static void* __get(any & __this,
423 static void* __handle(_Action __act, any const * __this,
424 any * __other, type_info const * __info,
430 __destroy(const_cast<any &>(*__this));
436 __move(const_cast<any &>(*__this), *__other);
439 return __get(const_cast<any &>(*__this), __info, __fallback_info);
447 static _Tp& __create(any & __dest, _Args&&... __args) {
461 static void __destroy(any & __this){
467 static void __copy(any const & __this, any & __dest) {
472 static void __move(any & __this, any & __dest) {
479 static void* __get(any & __this, type_info const * __info,
503 any::any(_ValueType && __v) : __h(nullptr)
509 any::any(in_place_type_t<_ValueType>, _Args&&... __args) {
514 any::any(in_place_type_t<_ValueType>, initializer_list<_Up> __il, _Args&&... __args) {
520 any & any::operator=(_ValueType && __v)
522 any(_VSTD::forward<_ValueType>(__v)).swap(*this);
528 _Tp& any::emplace(_Args&&... __args) {
535 _Tp& any::emplace(initializer_list<_Up> __il, _Args&&... __args) {
541 void any::swap(any & __rhs) _NOEXCEPT
546 any __tmp;
562 void swap(any & __lhs, any & __rhs) _NOEXCEPT
569 any make_any(_Args&&... __args) {
570 return any(in_place_type<_Tp>, _VSTD::forward<_Args>(__args)...);
575 any make_any(initializer_list<_Up> __il, _Args&&... __args) {
576 return any(in_place_type<_Tp>, __il, _VSTD::forward<_Args>(__args)...);
582 _ValueType any_cast(any const & __v)
597 _ValueType any_cast(any & __v)
612 _ValueType any_cast(any && __v)
627 any_cast(any const * __any) _NOEXCEPT
631 return _VSTD::any_cast<_ValueType>(const_cast<any *>(__any));
648 any_cast(any * __any) _NOEXCEPT