Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-03 08:14:07

0001 //===----------------------------------------------------------------------===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
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 // Since is-vector-bool-reference is only used once it's inlined here.
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 // _LIBCPP_STD_VER >= 23
0048 
0049 #endif // _LIBCPP___VECTOR_VECTOR_BOOL_FORMATTER_H