Birth Generator 1.1.1
Procedural birth date generation for C++23
Loading...
Searching...
No Matches
dasmig::year_t Struct Reference

Strong type for specifying a birth year. More...

#include <birthgen.hpp>

Public Member Functions

constexpr year_t (std::uint16_t v) noexcept
 

Public Attributes

std::uint16_t value
 

Detailed Description

Strong type for specifying a birth year.

Wraps a plain integer to prevent overload ambiguity with seed parameters. Must be constructed explicitly: year_t{1990}.

Definition at line 57 of file birthgen.hpp.

Constructor & Destructor Documentation

◆ year_t()

constexpr dasmig::year_t::year_t ( std::uint16_t  v)
inlineexplicitconstexprnoexcept

Definition at line 60 of file birthgen.hpp.

Member Data Documentation

◆ value

std::uint16_t dasmig::year_t::value

Definition at line 59 of file birthgen.hpp.


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