Vita
Public Member Functions | List of all members
vita::with_size Class Reference

Tag representing size. More...

#include <fitness.h>

Public Member Functions

std::size_t operator() () const
 
 with_size (std::size_t s)
 

Detailed Description

Tag representing size.

Used to initialize containers in a way that is completely unambiguous.

See also
https://akrzemi1.wordpress.com/2016/06/29/competing-constructors/

Definition at line 34 of file fitness.h.

Constructor & Destructor Documentation

◆ with_size()

vita::with_size::with_size ( std::size_t  s)
inlineexplicit

Definition at line 37 of file fitness.h.

Member Function Documentation

◆ operator()()

std::size_t vita::with_size::operator() ( ) const
inline

Definition at line 38 of file fitness.h.


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