Increment, Decrement
This commit is contained in:
@@ -266,6 +266,12 @@ int FindIndex( T1 begin, T1 end, const T2 *p )
|
|||||||
return iter - begin;
|
return iter - begin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Useful for objects with no operator-, eg. map::iterator (more convenient than advance). */
|
||||||
|
template<class T>
|
||||||
|
T Increment( T a ) { ++a; return a; }
|
||||||
|
template<class T>
|
||||||
|
T Decrement( T a ) { --a; return a; }
|
||||||
|
|
||||||
void TrimLeft(CString &str, const char *s = "\r\n\t ");
|
void TrimLeft(CString &str, const char *s = "\r\n\t ");
|
||||||
void TrimRight(CString &str, const char *s = "\r\n\t ");
|
void TrimRight(CString &str, const char *s = "\r\n\t ");
|
||||||
void StripCrnl(CString &s);
|
void StripCrnl(CString &s);
|
||||||
|
|||||||
Reference in New Issue
Block a user