MCPcopy Create free account
hub / github.com/fmtlib/fmt / limit

Method limit

include/fmt/base.h:1866–1870  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1864 constexpr explicit fixed_buffer_traits(size_t limit) : limit_(limit) {}
1865 constexpr auto count() const -> size_t { return count_; }
1866 FMT_CONSTEXPR auto limit(size_t size) -> size_t {
1867 size_t n = limit_ > count_ ? limit_ - count_ : 0;
1868 count_ += size;
1869 return min_of(size, n);
1870 }
1871};
1872
1873template <typename OutputIt, typename InputIt, typename = void>

Callers

nothing calls this directly

Calls 1

min_ofFunction · 0.85

Tested by

no test coverage detected