MCPcopy Create free account
hub / github.com/boostorg/leaf / category

Function category

include/boost/leaf/pred.hpp:68–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66#if __cplusplus >= 201703L
67template <class ErrorCodeEnum>
68BOOST_LEAF_CONSTEXPR inline bool category( std::error_code const & ec )
69{
70 static_assert(std::is_error_code_enum<ErrorCodeEnum>::value, "leaf::category requires an error code enum");
71 return &ec.category() == &std::error_code(ErrorCodeEnum{}).category();
72}
73#endif
74#endif // #if BOOST_LEAF_CFG_STD_SYSTEM_ERROR
75

Callers

nothing calls this directly

Calls 1

error_codeEnum · 0.50

Tested by

no test coverage detected