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

Method fixed_string

include/boost/ut.hpp:515–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513 CharT _data[N + 1] = {};
514
515 constexpr explicit(false) fixed_string(const CharT (&str)[N + 1]) noexcept {
516 if constexpr (N != 0) {
517 for (std::size_t i = 0; i < N; ++i) {
518 _data[i] = str[i];
519 }
520 }
521 }
522
523 [[nodiscard]] constexpr std::size_t size() const noexcept { return N; }
524 [[nodiscard]] constexpr bool empty() const noexcept { return N == 0; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected