rapidyaml  0.12.0
parse and emit YAML, and do it fast
Substring: read/write string views

Modules

 substr adapters
 to_substr() and to_csubstr() is used in generic code like format(), and allow adding construction of substrings from new types like containers.
 
 substr comparison operators
 

Classes

struct  c4::basic_substring< C >
 a non-owning string-view, consisting of a character pointer and a length. More...
 

Functions

template<class OStream , class C >
OStream & c4::operator<< (OStream &os, basic_substring< C > s)
 output the string to a stream More...
 

Detailed Description

Function Documentation

◆ operator<<()

template<class OStream , class C >
OStream& c4::operator<< ( OStream &  os,
basic_substring< C >  s 
)
inline

output the string to a stream

Definition at line 2323 of file substr.hpp.

2324 {
2325  os.write(s.str, s.len);
2326  return os;
2327 }

References c4::basic_substring< C >::len, and c4::basic_substring< C >::str.