Path: blob/master/dep/rapidyaml/include/c4/std/vector_fwd.hpp
4265 views
#ifndef _C4_STD_VECTOR_FWD_HPP_1#define _C4_STD_VECTOR_FWD_HPP_23/** @file vector_fwd.hpp */45#include <cstddef>67// forward declarations for std::vector8#if defined(__GLIBCXX__) || defined(__GLIBCPP__) || defined(_MSC_VER)9#if defined(_MSC_VER)10__pragma(warning(push))11__pragma(warning(disable : 4643))12#endif13namespace std {14template<typename> class allocator;15#ifdef _GLIBCXX_DEBUG16inline namespace __debug {17template<typename T, typename Alloc> class vector;18}19#else20template<typename T, typename Alloc> class vector;21#endif22} // namespace std23#if defined(_MSC_VER)24__pragma(warning(pop))25#endif26#elif defined(_LIBCPP_ABI_NAMESPACE)27namespace std {28inline namespace _LIBCPP_ABI_NAMESPACE {29template<typename> class allocator;30template<typename T, typename Alloc> class vector;31} // namespace _LIBCPP_ABI_NAMESPACE32} // namespace std33#else34#error "unknown standard library"35#endif3637#ifndef C4CORE_SINGLE_HEADER38#include "c4/substr_fwd.hpp"39#endif4041namespace c4 {4243template<class Alloc> c4::substr to_substr(std::vector<char, Alloc> &vec);44template<class Alloc> c4::csubstr to_csubstr(std::vector<char, Alloc> const& vec);4546template<class Alloc> bool operator!= (c4::csubstr ss, std::vector<char, Alloc> const& s);47template<class Alloc> bool operator== (c4::csubstr ss, std::vector<char, Alloc> const& s);48template<class Alloc> bool operator>= (c4::csubstr ss, std::vector<char, Alloc> const& s);49template<class Alloc> bool operator> (c4::csubstr ss, std::vector<char, Alloc> const& s);50template<class Alloc> bool operator<= (c4::csubstr ss, std::vector<char, Alloc> const& s);51template<class Alloc> bool operator< (c4::csubstr ss, std::vector<char, Alloc> const& s);5253template<class Alloc> bool operator!= (std::vector<char, Alloc> const& s, c4::csubstr ss);54template<class Alloc> bool operator== (std::vector<char, Alloc> const& s, c4::csubstr ss);55template<class Alloc> bool operator>= (std::vector<char, Alloc> const& s, c4::csubstr ss);56template<class Alloc> bool operator> (std::vector<char, Alloc> const& s, c4::csubstr ss);57template<class Alloc> bool operator<= (std::vector<char, Alloc> const& s, c4::csubstr ss);58template<class Alloc> bool operator< (std::vector<char, Alloc> const& s, c4::csubstr ss);5960template<class Alloc> size_t to_chars(c4::substr buf, std::vector<char, Alloc> const& s);61template<class Alloc> bool from_chars(c4::csubstr buf, std::vector<char, Alloc> * s);6263} // namespace c46465#endif // _C4_STD_VECTOR_FWD_HPP_666768