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

#include <flow_vector.h>

Public Member Functions

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

Detailed Description

Definition at line 28 of file flow_vector.h.

Member Function Documentation

◆ operator()()

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

Definition at line 29 of file flow_vector.h.

29 {
30 return oldCapacity * 2 + 1;
31 }

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