rapidyaml  0.11.1
parse and emit YAML, and do it fast
vector.hpp File Reference

provides conversion and comparison facilities from/between std::vector<char> to c4::substr and c4::csubstr. More...

#include "c4/substr.hpp"
#include <vector>

Go to the source code of this file.

Classes

struct  c4::is_string< std::vector< char, Alloc > >
 
struct  c4::is_writeable_string< std::vector< char, Alloc > >
 

Namespaces

 c4
 (Undefined by default) Use shorter error message from checks/asserts: do not show the check condition in the error message.
 

Functions

template<class Alloc >
c4::substr c4::to_substr (std::vector< char, Alloc > &vec)
 get a substr (writeable string view) of an existing std::vector<char> More...
 
template<class Alloc >
c4::csubstr c4::to_csubstr (std::vector< char, Alloc > const &vec)
 get a csubstr (read-only string) view of an existing std::vector<char> More...
 
template<class Alloc >
bool c4::operator!= (c4::csubstr ss, std::vector< char, Alloc > const &s)
 
template<class Alloc >
bool c4::operator== (c4::csubstr ss, std::vector< char, Alloc > const &s)
 
template<class Alloc >
bool c4::operator>= (c4::csubstr ss, std::vector< char, Alloc > const &s)
 
template<class Alloc >
bool c4::operator> (c4::csubstr ss, std::vector< char, Alloc > const &s)
 
template<class Alloc >
bool c4::operator<= (c4::csubstr ss, std::vector< char, Alloc > const &s)
 
template<class Alloc >
bool c4::operator< (c4::csubstr ss, std::vector< char, Alloc > const &s)
 
template<class Alloc >
bool c4::operator!= (std::vector< char, Alloc > const &s, c4::csubstr ss)
 
template<class Alloc >
bool c4::operator== (std::vector< char, Alloc > const &s, c4::csubstr ss)
 
template<class Alloc >
bool c4::operator>= (std::vector< char, Alloc > const &s, c4::csubstr ss)
 
template<class Alloc >
bool c4::operator> (std::vector< char, Alloc > const &s, c4::csubstr ss)
 
template<class Alloc >
bool c4::operator<= (std::vector< char, Alloc > const &s, c4::csubstr ss)
 
template<class Alloc >
bool c4::operator< (std::vector< char, Alloc > const &s, c4::csubstr ss)
 
template<class Alloc >
size_t c4::to_chars (c4::substr buf, std::vector< char, Alloc > const &s)
 copy a std::vector<char> to a substr More...
 
template<class Alloc >
bool c4::from_chars (c4::csubstr buf, std::vector< char, Alloc > *s)
 copy a csubstr to an existing std::vector<char> More...
 

Detailed Description

provides conversion and comparison facilities from/between std::vector<char> to c4::substr and c4::csubstr.

Definition in file vector.hpp.