Core Library  1.7.0.0
Library containing core utilities and tools for threading, networking, logging, INI and CSV file management etc.
core_lib::csv_grid::reserver::ContainerReserver< std::vector, T > Class Template Reference

Container reserver functor specialisation for vectors. More...

#include <CsvGridRow.h>

Public Types

using container_type = std::vector< T >
 Typedef to container type.
 

Public Member Functions

void operator() (container_type &container, size_t size) const
 Function operator. More...
 

Detailed Description

template<class T>
class core_lib::csv_grid::reserver::ContainerReserver< std::vector, T >

Container reserver functor specialisation for vectors.

Member Function Documentation

◆ operator()()

template<class T >
void core_lib::csv_grid::reserver::ContainerReserver< std::vector, T >::operator() ( container_type container,
size_t  size 
) const
inline

Function operator.

Parameters
[in]container- Container to reserve space in.
[in]size- Number of items to reserve space for.

This version of the functor calls the vector's built-in reserve method.


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