Flow
Documentation for the Flow C++ Library
Loading...
Searching...
No Matches
flow::VectorGrowthStrategy::GoldenExpand Struct Reference

#include <flow_vector.h>

Public Member Functions

std::size_t operator() (std::size_t oldCapacity) const

Detailed Description

Definition at line 22 of file flow_vector.h.

Member Function Documentation

◆ operator()()

std::size_t flow::VectorGrowthStrategy::GoldenExpand::operator() ( std::size_t oldCapacity) const
inline

Definition at line 23 of file flow_vector.h.

23 {
24 return oldCapacity + oldCapacity / 2 + 1;
25 }

The documentation for this struct was generated from the following file: