17namespace swoc {
inline namespace SWOC_VERSION_NS {
18using namespace literals;
24 return ::swoc::bwformat(w, spec, v.load());
27BufferWriter &bwformat(BufferWriter &w, bwf::Spec
const &spec, std::error_code
const &ec);
31bwformat(BufferWriter &w, bwf::Spec
const & , std::bitset<N>
const &bits) {
32 for (
unsigned idx = 0; idx < N; ++idx) {
33 w.write(bits[idx] ?
'1' :
'0');
38template <
typename Rep,
typename Period>
40bwformat(BufferWriter &w, bwf::Spec
const &spec, std::chrono::duration<Rep, Period>
const &d) {
44template <
typename Clock,
typename Duration>
46bwformat(BufferWriter &w, bwf::Spec
const &spec, std::chrono::time_point<Clock, Duration>
const &t) {
47 return bwformat(w, spec, t.time_since_epoch());
51bwformat(BufferWriter &w, bwf::Spec
const &spec, std::exception
const &e) {
52 w.
write(
"Exception - "_tv);
virtual BufferWriter & write(char c)=0
For template deduction guides.
BufferWriter & bwformat(BufferWriter &w, bwf::Spec const &spec, std::string_view sv)