Lines Matching refs:__v

402   static constexpr auto&& __get_alt(_Vp&& __v, in_place_index_t<0>) {
403 return _VSTD::forward<_Vp>(__v).__head;
408 static constexpr auto&& __get_alt(_Vp&& __v, in_place_index_t<_Ip>) {
409 return __get_alt(_VSTD::forward<_Vp>(__v).__tail, in_place_index<_Ip - 1>);
416 static constexpr auto&& __get_alt(_Vp&& __v) {
417 return __union::__get_alt(_VSTD::forward<_Vp>(__v).__data,
425 static constexpr auto&& __get_alt(_Vp&& __v) {
426 return __base::__get_alt<_Ip>(_VSTD::forward<_Vp>(__v).__impl);
1365 constexpr bool __holds_alternative(const variant<_Types...>& __v) noexcept {
1366 return __v.index() == _Ip;
1371 constexpr bool holds_alternative(const variant<_Types...>& __v) noexcept {
1372 return __holds_alternative<__find_exactly_one_t<_Tp, _Types...>::value>(__v);
1378 constexpr auto&& __generic_get(_Vp&& __v) {
1380 if (!__holds_alternative<_Ip>(__v)) {
1383 return __variant::__get_alt<_Ip>(_VSTD::forward<_Vp>(__v)).__value;
1390 variant<_Types...>& __v) {
1393 return __generic_get<_Ip>(__v);
1400 variant<_Types...>&& __v) {
1403 return __generic_get<_Ip>(_VSTD::move(__v));
1410 const variant<_Types...>& __v) {
1413 return __generic_get<_Ip>(__v);
1420 const variant<_Types...>&& __v) {
1423 return __generic_get<_Ip>(_VSTD::move(__v));
1429 constexpr _Tp& get(variant<_Types...>& __v) {
1431 return _VSTD::get<__find_exactly_one_t<_Tp, _Types...>::value>(__v);
1437 constexpr _Tp&& get(variant<_Types...>&& __v) {
1440 _VSTD::move(__v));
1446 constexpr const _Tp& get(const variant<_Types...>& __v) {
1448 return _VSTD::get<__find_exactly_one_t<_Tp, _Types...>::value>(__v);
1454 constexpr const _Tp&& get(const variant<_Types...>&& __v) {
1457 _VSTD::move(__v));
1462 constexpr auto* __generic_get_if(_Vp* __v) noexcept {
1464 return __v && __holds_alternative<_Ip>(*__v)
1465 ? _VSTD::addressof(__variant::__get_alt<_Ip>(*__v).__value)
1472 get_if(variant<_Types...>* __v) noexcept {
1475 return __generic_get_if<_Ip>(__v);
1481 get_if(const variant<_Types...>* __v) noexcept {
1484 return __generic_get_if<_Ip>(__v);
1490 get_if(variant<_Types...>* __v) noexcept {
1492 return _VSTD::get_if<__find_exactly_one_t<_Tp, _Types...>::value>(__v);
1498 get_if(const variant<_Types...>* __v) noexcept {
1500 return _VSTD::get_if<__find_exactly_one_t<_Tp, _Types...>::value>(__v);
1634 result_type operator()(const argument_type& __v) const {
1637 __v.valueless_by_exception()
1646 __v);
1647 return __hash_combine(__res, hash<size_t>{}(__v.index()));