MCPcopy Create free account
hub / github.com/boostorg/hana / optionalToString

Function optionalToString

example/tutorial/introspection.cpp:43–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41//! [optionalToString.then]
42template <typename T>
43auto optionalToString(T const& obj)
44 -> std::enable_if_t<decltype(has_toString(obj))::value, std::string>
45{ return obj.toString(); }
46
47template <typename T>
48auto optionalToString(T const& obj)

Callers 1

mainFunction · 0.70

Calls 2

has_toStringClass · 0.85
toStringMethod · 0.45

Tested by

no test coverage detected