-
#include "cpp_apigen_demo/index_interval.h"
- class cpp_apigen_demo::IndexInterval;
Demonstrates a non-template class.
Constructors¶
- explicit IndexInterval(int lower, int upper);
Constructs an interval.
Friend functions¶
- friend std::ostream &operator<<(std::ostream &os, IndexInterval x);
Prints a string representation to
os
.
Methods¶
- int lower() const;
Returns the lower bound.
- int upper() const;
Returns the upper bound.
Related Functions¶
-
IndexInterval cpp_apigen_demo::Union(IndexInterval a,
IndexInterval b); Computes the union of two intervals.
Last update:
Dec 16, 2024