File indexing completed on 2026-05-03 08:14:07
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef _LIBCPP___VECTOR_VECTOR_BOOL_FORMATTER_H
0010 #define _LIBCPP___VECTOR_VECTOR_BOOL_FORMATTER_H
0011
0012 #include <__concepts/same_as.h>
0013 #include <__config>
0014 #include <__format/formatter.h>
0015 #include <__format/formatter_bool.h>
0016 #include <__fwd/vector.h>
0017
0018 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0019 # pragma GCC system_header
0020 #endif
0021
0022 #if _LIBCPP_STD_VER >= 23
0023
0024 _LIBCPP_BEGIN_NAMESPACE_STD
0025
0026 template <class _Tp, class _CharT>
0027
0028 requires same_as<typename _Tp::__container, vector<bool, typename _Tp::__container::allocator_type>>
0029 struct _LIBCPP_TEMPLATE_VIS formatter<_Tp, _CharT> {
0030 private:
0031 formatter<bool, _CharT> __underlying_;
0032
0033 public:
0034 template <class _ParseContext>
0035 _LIBCPP_HIDE_FROM_ABI constexpr typename _ParseContext::iterator parse(_ParseContext& __ctx) {
0036 return __underlying_.parse(__ctx);
0037 }
0038
0039 template <class _FormatContext>
0040 _LIBCPP_HIDE_FROM_ABI typename _FormatContext::iterator format(const _Tp& __ref, _FormatContext& __ctx) const {
0041 return __underlying_.format(__ref, __ctx);
0042 }
0043 };
0044
0045 _LIBCPP_END_NAMESPACE_STD
0046
0047 #endif
0048
0049 #endif