tgen
Loading...
Searching...
No Matches

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

Public Member Functions

bool operator< (const Inst &rhs) const

Detailed Description

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

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

Definition at line 383 of file tgen.h.

Member Function Documentation

◆ operator<()

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

Comparator for generator values.

Template Parameters
InstAutomatically set to the given type.
Parameters
rhsRight-hand side of the comparison.
Returns
If this value is less than the right-hand side value.

Uses Inst::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;
String value.
Definition tgen.h:3179

Definition at line 386 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