MCPcopy Create free account
hub / github.com/boostorg/json / max_size

Method max_size

include/boost/json/detail/string_impl.hpp:99–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97
98public:
99 static
100 constexpr
101 std::size_t
102 max_size() noexcept
103 {
104 // max_size depends on the address model
105 using min = std::integral_constant<std::size_t,
106 std::size_t(-1) - sizeof(table)>;
107 return min::value < BOOST_JSON_MAX_STRING_SIZE ?
108 min::value : BOOST_JSON_MAX_STRING_SIZE;
109 }
110
111 BOOST_JSON_DECL
112 string_impl() noexcept;

Callers

nothing calls this directly

Calls 1

size_tClass · 0.85

Tested by

no test coverage detected