Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
libcxx/include/memory
Show First 20 Lines • Show All 2,161 Lines • ▼ Show 20 Lines | |||||
template <> | template <> | ||||
class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX11 auto_ptr<void> | class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX11 auto_ptr<void> | ||||
{ | { | ||||
public: | public: | ||||
typedef void element_type; | typedef void element_type; | ||||
}; | }; | ||||
#endif | #endif | ||||
// Tag used to default initialize one or both of the pair's elements. | |||||
struct __default_value_tag {}; | |||||
template <class _Tp, int _Idx, | template <class _Tp, int _Idx, | ||||
bool _CanBeEmptyBase = | bool _CanBeEmptyBase = | ||||
is_empty<_Tp>::value && !__libcpp_is_final<_Tp>::value> | is_empty<_Tp>::value && !__libcpp_is_final<_Tp>::value> | ||||
struct __compressed_pair_elem { | struct __compressed_pair_elem { | ||||
typedef _Tp _ParamT; | typedef _Tp _ParamT; | ||||
typedef _Tp& reference; | typedef _Tp& reference; | ||||
typedef const _Tp& const_reference; | typedef const _Tp& const_reference; | ||||
#ifndef _LIBCPP_CXX03_LANG | #ifndef _LIBCPP_CXX03_LANG | ||||
_LIBCPP_INLINE_VISIBILITY constexpr __compressed_pair_elem() : __value_() {} | _LIBCPP_INLINE_VISIBILITY constexpr __compressed_pair_elem() : __value_() {} | ||||
_LIBCPP_INLINE_VISIBILITY constexpr __compressed_pair_elem(__default_value_tag) {} | |||||
template <class _Up, class = typename enable_if< | template <class _Up, class = typename enable_if< | ||||
!is_same<__compressed_pair_elem, typename decay<_Up>::type>::value | !is_same<__compressed_pair_elem, typename decay<_Up>::type>::value | ||||
>::type> | >::type> | ||||
_LIBCPP_INLINE_VISIBILITY | _LIBCPP_INLINE_VISIBILITY | ||||
constexpr explicit | constexpr explicit | ||||
__compressed_pair_elem(_Up&& __u) | __compressed_pair_elem(_Up&& __u) | ||||
: __value_(_VSTD::forward<_Up>(__u)) | : __value_(_VSTD::forward<_Up>(__u)) | ||||
▲ Show 20 Lines • Show All 3,186 Lines • Show Last 20 Lines |