Next: Exposing the Location Classes, Previous: C++ position, Up: C++ Location Values [Contents][Index]
locationconst position& begin, const position& end)Create a Location from the endpoints of the range.
const position& pos = position())std::string* file, counter_type line, counter_type col)Create a Location denoting an empty range located at a given point.
std::string* file = nullptr, counter_type line = 1, counter_type col = 1)Reset the location to an empty range at the given values.
The first, inclusive, position of the range, and the first beyond.
counter_type width = 1)counter_type height = 1)Forwarded to the end position.
counter_type width)counter_type width)counter_type width)counter_type width)Various forms of syntactic sugar for columns.
const location& end)const location& end)Join two locations: starts at the position of the first one, and ends at the position of the second.
Move begin onto end.
const location& that)const location& that)Whether *this and that denote equal/different ranges of
positions.
std::ostream& o, const location& p)Report p on o, taking care of special cases such as: no
filename defined, or equal filename/line or column.
Next: Exposing the Location Classes, Previous: C++ position, Up: C++ Location Values [Contents][Index]