tgen
Loading...
Searching...
No Matches

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

Public Member Functions

bool operator< (const Inst &rhs) const

Detailed Description

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

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

Examples

Definition at line 377 of file tgen.h.

Member Function Documentation

◆ operator<()

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

Comparator for generator instances.

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

Uses Inst::to_std for the comparison.

Complexity

Linear.

Examples

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

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