@@ -268,10 +268,10 @@ class __base<_Rp(_ArgTypes...)>
268
268
virtual void destroy () _NOEXCEPT = 0;
269
269
virtual void destroy_deallocate () _NOEXCEPT = 0;
270
270
virtual _Rp operator ()(_ArgTypes&& ...) = 0;
271
- #ifndef _LIBCPP_NO_RTTI
271
+ #ifndef _LIBCPP_HAS_NO_RTTI
272
272
virtual const void * target (const type_info&) const _NOEXCEPT = 0;
273
273
virtual const std::type_info& target_type () const _NOEXCEPT = 0;
274
- #endif // _LIBCPP_NO_RTTI
274
+ #endif // _LIBCPP_HAS_NO_RTTI
275
275
};
276
276
277
277
// __func implements __base for a given functor type.
@@ -305,10 +305,10 @@ class __func<_Fp, _Alloc, _Rp(_ArgTypes...)>
305
305
virtual void destroy () _NOEXCEPT;
306
306
virtual void destroy_deallocate () _NOEXCEPT;
307
307
virtual _Rp operator ()(_ArgTypes&&... __arg);
308
- #ifndef _LIBCPP_NO_RTTI
308
+ #ifndef _LIBCPP_HAS_NO_RTTI
309
309
virtual const void * target (const type_info&) const _NOEXCEPT;
310
310
virtual const std::type_info& target_type () const _NOEXCEPT;
311
- #endif // _LIBCPP_NO_RTTI
311
+ #endif // _LIBCPP_HAS_NO_RTTI
312
312
};
313
313
314
314
template <class _Fp , class _Alloc , class _Rp , class ..._ArgTypes>
@@ -356,7 +356,7 @@ __func<_Fp, _Alloc, _Rp(_ArgTypes...)>::operator()(_ArgTypes&& ... __arg)
356
356
return __f_ (_VSTD::forward<_ArgTypes>(__arg)...);
357
357
}
358
358
359
- #ifndef _LIBCPP_NO_RTTI
359
+ #ifndef _LIBCPP_HAS_NO_RTTI
360
360
361
361
template <class _Fp , class _Alloc , class _Rp , class ..._ArgTypes>
362
362
const void *
@@ -374,7 +374,7 @@ __func<_Fp, _Alloc, _Rp(_ArgTypes...)>::target_type() const _NOEXCEPT
374
374
return typeid (_Fp);
375
375
}
376
376
377
- #endif // _LIBCPP_NO_RTTI
377
+ #endif // _LIBCPP_HAS_NO_RTTI
378
378
379
379
// __value_func creates a value-type from a __func.
380
380
@@ -553,7 +553,7 @@ template <class _Rp, class... _ArgTypes> class __value_func<_Rp(_ArgTypes...)>
553
553
_LIBCPP_INLINE_VISIBILITY
554
554
explicit operator bool () const _NOEXCEPT { return __f_ != nullptr ; }
555
555
556
- #ifndef _LIBCPP_NO_RTTI
556
+ #ifndef _LIBCPP_HAS_NO_RTTI
557
557
_LIBCPP_INLINE_VISIBILITY
558
558
const std::type_info& target_type () const _NOEXCEPT
559
559
{
@@ -569,7 +569,7 @@ template <class _Rp, class... _ArgTypes> class __value_func<_Rp(_ArgTypes...)>
569
569
return nullptr ;
570
570
return (const _Tp*)__f_->target (typeid (_Tp));
571
571
}
572
- #endif // _LIBCPP_NO_RTTI
572
+ #endif // _LIBCPP_HAS_NO_RTTI
573
573
};
574
574
575
575
// Storage for a functor object, to be used with __policy to manage copy and
@@ -616,7 +616,7 @@ struct __policy
616
616
{
617
617
static const _LIBCPP_CONSTEXPR __policy __policy_ = {nullptr , nullptr ,
618
618
true ,
619
- #ifndef _LIBCPP_NO_RTTI
619
+ #ifndef _LIBCPP_HAS_NO_RTTI
620
620
&typeid (void )
621
621
#else
622
622
nullptr
@@ -642,7 +642,7 @@ struct __policy
642
642
__choose_policy (/* is_small = */ false_type) {
643
643
static const _LIBCPP_CONSTEXPR __policy __policy_ = {
644
644
&__large_clone<_Fun>, &__large_destroy<_Fun>, false ,
645
- #ifndef _LIBCPP_NO_RTTI
645
+ #ifndef _LIBCPP_HAS_NO_RTTI
646
646
&typeid (typename _Fun::_Target)
647
647
#else
648
648
nullptr
@@ -657,7 +657,7 @@ struct __policy
657
657
{
658
658
static const _LIBCPP_CONSTEXPR __policy __policy_ = {
659
659
nullptr , nullptr , false ,
660
- #ifndef _LIBCPP_NO_RTTI
660
+ #ifndef _LIBCPP_HAS_NO_RTTI
661
661
&typeid (typename _Fun::_Target)
662
662
#else
663
663
nullptr
@@ -861,7 +861,7 @@ template <class _Rp, class... _ArgTypes> class __policy_func<_Rp(_ArgTypes...)>
861
861
return !__policy_->__is_null ;
862
862
}
863
863
864
- #ifndef _LIBCPP_NO_RTTI
864
+ #ifndef _LIBCPP_HAS_NO_RTTI
865
865
_LIBCPP_INLINE_VISIBILITY
866
866
const std::type_info& target_type () const _NOEXCEPT
867
867
{
@@ -878,7 +878,7 @@ template <class _Rp, class... _ArgTypes> class __policy_func<_Rp(_ArgTypes...)>
878
878
else
879
879
return reinterpret_cast <const _Tp*>(&__buf_.__small );
880
880
}
881
- #endif // _LIBCPP_NO_RTTI
881
+ #endif // _LIBCPP_HAS_NO_RTTI
882
882
};
883
883
884
884
#if defined(_LIBCPP_HAS_BLOCKS_RUNTIME)
@@ -945,7 +945,7 @@ class __func<_Rp1(^)(_ArgTypes1...), _Alloc, _Rp(_ArgTypes...)>
945
945
return _VSTD::__invoke (__f_, _VSTD::forward<_ArgTypes>(__arg)...);
946
946
}
947
947
948
- #ifndef _LIBCPP_NO_RTTI
948
+ #ifndef _LIBCPP_HAS_NO_RTTI
949
949
virtual const void * target (type_info const & __ti) const _NOEXCEPT {
950
950
if (__ti == typeid (__func::__block_type))
951
951
return &__f_;
@@ -955,7 +955,7 @@ class __func<_Rp1(^)(_ArgTypes1...), _Alloc, _Rp(_ArgTypes...)>
955
955
virtual const std::type_info& target_type () const _NOEXCEPT {
956
956
return typeid (__func::__block_type);
957
957
}
958
- #endif // _LIBCPP_NO_RTTI
958
+ #endif // _LIBCPP_HAS_NO_RTTI
959
959
};
960
960
961
961
#endif // _LIBCPP_HAS_EXTENSION_BLOCKS
@@ -1056,12 +1056,12 @@ class _LIBCPP_TEMPLATE_VIS function<_Rp(_ArgTypes...)>
1056
1056
// function invocation:
1057
1057
_Rp operator ()(_ArgTypes...) const ;
1058
1058
1059
- #ifndef _LIBCPP_NO_RTTI
1059
+ #ifndef _LIBCPP_HAS_NO_RTTI
1060
1060
// function target access:
1061
1061
const std::type_info& target_type () const _NOEXCEPT;
1062
1062
template <typename _Tp> _Tp* target () _NOEXCEPT;
1063
1063
template <typename _Tp> const _Tp* target () const _NOEXCEPT;
1064
- #endif // _LIBCPP_NO_RTTI
1064
+ #endif // _LIBCPP_HAS_NO_RTTI
1065
1065
};
1066
1066
1067
1067
#if _LIBCPP_STD_VER >= 17
@@ -1156,7 +1156,7 @@ function<_Rp(_ArgTypes...)>::operator()(_ArgTypes... __arg) const
1156
1156
return __f_ (_VSTD::forward<_ArgTypes>(__arg)...);
1157
1157
}
1158
1158
1159
- #ifndef _LIBCPP_NO_RTTI
1159
+ #ifndef _LIBCPP_HAS_NO_RTTI
1160
1160
1161
1161
template <class _Rp , class ..._ArgTypes>
1162
1162
const std::type_info&
@@ -1181,7 +1181,7 @@ function<_Rp(_ArgTypes...)>::target() const _NOEXCEPT
1181
1181
return __f_.template target <_Tp>();
1182
1182
}
1183
1183
1184
- #endif // _LIBCPP_NO_RTTI
1184
+ #endif // _LIBCPP_HAS_NO_RTTI
1185
1185
1186
1186
template <class _Rp , class ... _ArgTypes>
1187
1187
inline _LIBCPP_INLINE_VISIBILITY
0 commit comments