tgen
Loading...
Searching...
No Matches

Base class for generator values (should not be instantiated). More...

Public Member Functions

bool operator< (const Val &rhs) const

Detailed Description

template<typename Val>
struct tgen::gen_value_base< Val >

Base class for generator values (should not be instantiated).

Definition at line 463 of file tgen.h.

Member Function Documentation

◆ operator<()

template<typename Val>
bool tgen::gen_value_base< Val >::operator< ( const Val & rhs) const
inline

Comparator for generator values.

Template Parameters
ValAutomatically set to the given type.
Parameters
rhsRight-hand side of the comparison.
Returns
Whether this generator value is less than rhs.

Uses Val::to_std for the comparison.

Complexity

Linear.

Examples

// Checks if one string is lexicographically smaller than the other.
std::cout << (tgen::str::value("aba") < tgen::str::value("abc")) << std::endl; // Prints "1".
String value.
Definition tgen.h:3801

Definition at line 466 of file tgen.h.


The documentation for this struct was generated from the following files:
  • /home/runner/work/tgen/tgen/single_include/tgen.h
  • base.dox