Lines Matching refs:constexpr

25   inline constexpr nullopt_t nullopt(unspecified );
32 constexpr bool operator==(const optional<T>&, const optional<U>&);
34 constexpr bool operator!=(const optional<T>&, const optional<U>&);
36 constexpr bool operator<(const optional<T>&, const optional<U>&);
38 constexpr bool operator>(const optional<T>&, const optional<U>&);
40 constexpr bool operator<=(const optional<T>&, const optional<U>&);
42 constexpr bool operator>=(const optional<T>&, const optional<U>&);
45 template <class T> constexpr bool operator==(const optional<T>&, nullopt_t) noexcept;
46 template <class T> constexpr bool operator==(nullopt_t, const optional<T>&) noexcept;
47 template <class T> constexpr bool operator!=(const optional<T>&, nullopt_t) noexcept;
48 template <class T> constexpr bool operator!=(nullopt_t, const optional<T>&) noexcept;
49 template <class T> constexpr bool operator<(const optional<T>&, nullopt_t) noexcept;
50 template <class T> constexpr bool operator<(nullopt_t, const optional<T>&) noexcept;
51 template <class T> constexpr bool operator<=(const optional<T>&, nullopt_t) noexcept;
52 template <class T> constexpr bool operator<=(nullopt_t, const optional<T>&) noexcept;
53 template <class T> constexpr bool operator>(const optional<T>&, nullopt_t) noexcept;
54 template <class T> constexpr bool operator>(nullopt_t, const optional<T>&) noexcept;
55 template <class T> constexpr bool operator>=(const optional<T>&, nullopt_t) noexcept;
56 template <class T> constexpr bool operator>=(nullopt_t, const optional<T>&) noexcept;
59 template <class T, class U> constexpr bool operator==(const optional<T>&, const U&);
60 template <class T, class U> constexpr bool operator==(const T&, const optional<U>&);
61 template <class T, class U> constexpr bool operator!=(const optional<T>&, const U&);
62 template <class T, class U> constexpr bool operator!=(const T&, const optional<U>&);
63 template <class T, class U> constexpr bool operator<(const optional<T>&, const U&);
64 template <class T, class U> constexpr bool operator<(const T&, const optional<U>&);
65 template <class T, class U> constexpr bool operator<=(const optional<T>&, const U&);
66 template <class T, class U> constexpr bool operator<=(const T&, const optional<U>&);
67 template <class T, class U> constexpr bool operator>(const optional<T>&, const U&);
68 template <class T, class U> constexpr bool operator>(const T&, const optional<U>&);
69 template <class T, class U> constexpr bool operator>=(const optional<T>&, const U&);
70 template <class T, class U> constexpr bool operator>=(const T&, const optional<U>&);
74 template <class T> constexpr optional<see below > make_optional(T&&);
76 constexpr optional<T> make_optional(Args&&... args);
78 constexpr optional<T> make_optional(initializer_list<U> il, Args&&... args);
89 constexpr optional() noexcept;
90 constexpr optional(nullopt_t) noexcept;
93 template <class... Args> constexpr explicit optional(in_place_t, Args &&...);
95 constexpr explicit optional(in_place_t, initializer_list<U>, Args &&...);
97 constexpr EXPLICIT optional(U &&);
99 constexpr EXPLICIT optional(const optional<U> &);
101 constexpr EXPLICIT optional(optional<U> &&);
108 optional &operator=(const optional &); // constexpr in C++20
109 optional &operator=(optional &&) noexcept(see below); // constexpr in C++20
121 constexpr T const *operator->() const;
122 constexpr T *operator->();
123 constexpr T const &operator*() const &;
124 constexpr T &operator*() &;
125 constexpr T &&operator*() &&;
126 constexpr const T &&operator*() const &&;
127 constexpr explicit operator bool() const noexcept;
128 constexpr bool has_value() const noexcept;
129 constexpr T const &value() const &;
130 constexpr T &value() &;
131 constexpr T &&value() &&;
132 constexpr const T &&value() const &&;
133 template <class U> constexpr T value_or(U &&) const &;
134 template <class U> constexpr T value_or(U &&) &&;
201 _LIBCPP_INLINE_VISIBILITY constexpr explicit nullopt_t(__secret_tag, __secret_tag) noexcept {}
204 _LIBCPP_INLINE_VAR constexpr nullopt_t nullopt{nullopt_t::__secret_tag{}, nullopt_t::__secret_tag{}…
230 constexpr __optional_destruct_base() noexcept
236 constexpr explicit __optional_destruct_base(in_place_t, _Args&&... __args)
265 constexpr __optional_destruct_base() noexcept
271 constexpr explicit __optional_destruct_base(in_place_t, _Args&&... __args)
293 constexpr bool has_value() const noexcept
299 constexpr value_type& __get() & noexcept
304 constexpr const value_type& __get() const& noexcept
309 constexpr value_type&& __get() && noexcept
314 constexpr const value_type&& __get() const&& noexcept
366 static constexpr bool __can_bind_reference() {
382 constexpr __optional_storage_base() noexcept
387 constexpr explicit __optional_storage_base(in_place_t, _UArg&& __uarg)
399 constexpr bool has_value() const noexcept
403 constexpr value_type& __get() const& noexcept
407 constexpr value_type&& __get() const&& noexcept
608 static constexpr bool __enable_implicit() {
614 static constexpr bool __enable_explicit() {
647 static constexpr bool __enable_implicit() {
652 static constexpr bool __enable_explicit() {
657 static constexpr bool __enable_assign() {
686 _LIBCPP_INLINE_VISIBILITY constexpr optional() noexcept {}
687 _LIBCPP_INLINE_VISIBILITY constexpr optional(const optional&) = default;
688 _LIBCPP_INLINE_VISIBILITY constexpr optional(optional&&) = default;
689 _LIBCPP_INLINE_VISIBILITY constexpr optional(nullopt_t) noexcept {}
695 constexpr explicit optional(in_place_t, _Args&&... __args)
702 constexpr explicit optional(in_place_t, initializer_list<_Up> __il, _Args&&... __args)
709 constexpr optional(_Up&& __v)
716 constexpr explicit optional(_Up&& __v)
869 constexpr
882 constexpr
895 constexpr
904 constexpr
913 constexpr
922 constexpr
931 constexpr explicit operator bool() const noexcept { return has_value(); }
938 constexpr value_type const& value() const&
947 constexpr value_type& value() &
956 constexpr value_type&& value() &&
965 constexpr value_type const&& value() const&&
974 constexpr value_type value_or(_Up&& __v) const&
986 constexpr value_type value_or(_Up&& __v) &&
1009 static constexpr _Up*
1023 _LIBCPP_INLINE_VISIBILITY constexpr
1039 _LIBCPP_INLINE_VISIBILITY constexpr
1055 _LIBCPP_INLINE_VISIBILITY constexpr
1071 _LIBCPP_INLINE_VISIBILITY constexpr
1087 _LIBCPP_INLINE_VISIBILITY constexpr
1103 _LIBCPP_INLINE_VISIBILITY constexpr
1120 _LIBCPP_INLINE_VISIBILITY constexpr
1128 _LIBCPP_INLINE_VISIBILITY constexpr
1136 _LIBCPP_INLINE_VISIBILITY constexpr
1144 _LIBCPP_INLINE_VISIBILITY constexpr
1152 _LIBCPP_INLINE_VISIBILITY constexpr
1160 _LIBCPP_INLINE_VISIBILITY constexpr
1168 _LIBCPP_INLINE_VISIBILITY constexpr
1176 _LIBCPP_INLINE_VISIBILITY constexpr
1184 _LIBCPP_INLINE_VISIBILITY constexpr
1192 _LIBCPP_INLINE_VISIBILITY constexpr
1200 _LIBCPP_INLINE_VISIBILITY constexpr
1208 _LIBCPP_INLINE_VISIBILITY constexpr
1217 _LIBCPP_INLINE_VISIBILITY constexpr
1229 _LIBCPP_INLINE_VISIBILITY constexpr
1241 _LIBCPP_INLINE_VISIBILITY constexpr
1253 _LIBCPP_INLINE_VISIBILITY constexpr
1265 _LIBCPP_INLINE_VISIBILITY constexpr
1277 _LIBCPP_INLINE_VISIBILITY constexpr
1289 _LIBCPP_INLINE_VISIBILITY constexpr
1301 _LIBCPP_INLINE_VISIBILITY constexpr
1313 _LIBCPP_INLINE_VISIBILITY constexpr
1325 _LIBCPP_INLINE_VISIBILITY constexpr
1337 _LIBCPP_INLINE_VISIBILITY constexpr
1349 _LIBCPP_INLINE_VISIBILITY constexpr
1373 _LIBCPP_INLINE_VISIBILITY constexpr
1380 _LIBCPP_INLINE_VISIBILITY constexpr
1387 _LIBCPP_INLINE_VISIBILITY constexpr