MCPcopy Create free account
hub / github.com/boost-ext/ut / operator<<

Method operator<<

example/matcher.cpp:18–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 matcher(bool result, const std::string& str) : result_{result}, str_{str} {}
17 constexpr explicit operator bool() const { return result_; }
18 friend auto operator<<(std::ostream& os, const matcher& self)
19 -> std::ostream& {
20 return (os << self.str_);
21 }
22
23 private:
24 const bool result_{};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected