aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/cstriter.h
blob: b4e7c30a97f0eaf6b7f3e256d674bf0c1457c516 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once 
 
struct TCStringEndIterator { 
}; 
 
template <class It> 
static inline bool operator==(It b, TCStringEndIterator) { 
    return !*b; 
} 
 
template <class It> 
static inline bool operator!=(It b, TCStringEndIterator) { 
    return !!*b;
}