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

Method grow

include/fmt/base.h:2019–2023  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2017 using value_type = typename Container::value_type;
2018
2019 static FMT_CONSTEXPR void grow(buffer<value_type>& buf, size_t capacity) {
2020 auto& self = static_cast<container_buffer&>(buf);
2021 self.container.resize(capacity);
2022 self.set(&self.container[0], capacity);
2023 }
2024
2025 public:
2026 Container& container;

Callers

nothing calls this directly

Calls 2

resizeMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected