aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/cstriter.h
blob: ca57728c39604695b9af02752d31d5165a53fe1b (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;
}