#include <algorithm>
#include <iostream>
#include <string>
Go to the source code of this file.
|
position & | yy::operator+= (position &res, int width) |
| Add and assign a position.
|
|
position | yy::operator+ (position res, int width) |
| Add two position objects.
|
|
position & | yy::operator-= (position &res, int width) |
| Add and assign a position.
|
|
position | yy::operator- (position res, int width) |
| Add two position objects.
|
|
bool | yy::operator== (const position &pos1, const position &pos2) |
| Compare two position objects.
|
|
bool | yy::operator!= (const position &pos1, const position &pos2) |
| Compare two position objects.
|
|
template<typename YYChar > |
std::basic_ostream< YYChar > & | yy::operator<< (std::basic_ostream< YYChar > &ostr, const position &pos) |
| Intercept output stream redirection. More...
|
|
Define the yy::position class.
◆ operator<<()
template<typename YYChar >
std::basic_ostream<YYChar>& yy::operator<< |
( |
std::basic_ostream< YYChar > & |
ostr, |
|
|
const position & |
pos |
|
) |
| |
|
inline |
Intercept output stream redirection.
- Parameters
-
ostr | the destination output stream |
pos | a reference to the position to redirect |