Lines Matching defs:operator
46 // than std::map (at least 160 bytes for operator[]) which is bad if you
53 // std::map (and in MSVC additionally hash_map) only a "less" operator is
59 // operator< for your map and supply yor own version of == to the SmallMap.
60 // You can use regular operator== by just doing:
98 // on any call to erase(), insert() and operator[].
105 void operator()(ManualConstructor<NormalMap>* map) const {
137 bool operator()(const typename M::key_type& left,
146 // Provide overrides to use operator== for key compare for the "normal" map and
155 bool operator()(const KeyType& left, const KeyType& right) {
163 bool operator()(const KeyType& left, const KeyType& right) {
208 void operator=(const SmallMap& src) {
234 inline iterator& operator++() {
242 inline iterator operator++(int /*unused*/) {
247 inline iterator& operator--() {
255 inline iterator operator--(int /*unused*/) {
260 inline value_type* operator->() const {
264 return hash_iter_.operator->();
268 inline value_type& operator*() const {
276 inline bool operator==(const iterator& other) const {
284 inline bool operator!=(const iterator& other) const {
288 bool operator==(const const_iterator& other) const;
289 bool operator!=(const const_iterator& other) const;
317 inline const_iterator& operator++() {
325 inline const_iterator operator++(int /*unused*/) {
331 inline const_iterator& operator--() {
339 inline const_iterator operator--(int /*unused*/) {
345 inline const value_type* operator->() const {
349 return hash_iter_.operator->();
353 inline const value_type& operator*() const {
361 inline bool operator==(const const_iterator& other) const {
369 inline bool operator!=(const const_iterator& other) const {
415 data_type& operator[](const key_type& key) {
419 // operator[] searches backwards, favoring recently-added
638 Functor>::iterator::operator==(
645 Functor>::iterator::operator!=(