MCPcopy Create free account
hub / github.com/Neargye/magic_enum / fill

Method fill

include/magic_enum/magic_enum_containers.hpp:421–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419 [[nodiscard]] constexpr size_type max_size() const noexcept { return a.max_size(); }
420
421 constexpr void fill(const V& value) {
422 for (auto& v : a) {
423 v = value;
424 }
425 }
426
427 constexpr void swap(array& other) noexcept(std::is_nothrow_swappable_v<V>) {
428 for (std::size_t i = 0; i < a.size(); ++i) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected