Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'base/stl_helpers.hpp')
-rw-r--r--base/stl_helpers.hpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/base/stl_helpers.hpp b/base/stl_helpers.hpp
index c01fbc5b99..832f53b829 100644
--- a/base/stl_helpers.hpp
+++ b/base/stl_helpers.hpp
@@ -16,31 +16,31 @@ struct Less;
template <typename T, typename C>
struct Less<true, T, C>
{
- Less(T(C::*p)) : p_(p) {}
+ Less(T(C::*p)) : m_p(p) {}
- inline bool operator()(C const & lhs, C const & rhs) const { return lhs.*p_ < rhs.*p_; }
+ inline bool operator()(C const & lhs, C const & rhs) const { return lhs.*m_p < rhs.*m_p; }
inline bool operator()(C const * const lhs, C const * const rhs) const
{
- return lhs->*p_ < rhs->*p_;
+ return lhs->*m_p < rhs->*m_p;
}
- T(C::*p_);
+ T(C::*m_p);
};
template <typename T, typename C>
struct Less<false, T, C>
{
- Less(T (C::*p)() const) : p_(p) {}
+ Less(T (C::*p)() const) : m_p(p) {}
- inline bool operator()(C const & lhs, C const & rhs) const { return (lhs.*p_)() < (rhs.*p_)(); }
+ inline bool operator()(C const & lhs, C const & rhs) const { return (lhs.*m_p)() < (rhs.*m_p)(); }
inline bool operator()(C const * const lhs, C const * const rhs) const
{
- return (lhs->*p_)() < (rhs->*p_)();
+ return (lhs->*m_p)() < (rhs->*m_p)();
}
- T (C::*p_)() const;
+ T (C::*m_p)() const;
};
template <bool isField, typename T, typename C>
@@ -49,31 +49,31 @@ struct Equals;
template <typename T, typename C>
struct Equals<true, T, C>
{
- Equals(T(C::*p)) : p_(p) {}
+ Equals(T(C::*p)) : m_p(p) {}
- inline bool operator()(C const & lhs, C const & rhs) const { return lhs.*p_ == rhs.*p_; }
+ inline bool operator()(C const & lhs, C const & rhs) const { return lhs.*m_p == rhs.*m_p; }
inline bool operator()(C const * const lhs, C const * const rhs) const
{
- return lhs->*p_ == rhs->*p_;
+ return lhs->*m_p == rhs->*m_p;
}
- T(C::*p_);
+ T(C::*m_p);
};
template <typename T, typename C>
struct Equals<false, T, C>
{
- Equals(T (C::*p)() const) : p_(p) {}
+ Equals(T (C::*p)() const) : m_p(p) {}
- inline bool operator()(C const & lhs, C const & rhs) const { return (lhs.*p_)() == (rhs.*p_)(); }
+ inline bool operator()(C const & lhs, C const & rhs) const { return (lhs.*m_p)() == (rhs.*m_p)(); }
inline bool operator()(C const * const lhs, C const * const rhs) const
{
- return (lhs->*p_)() == (rhs->*p_)();
+ return (lhs->*m_p)() == (rhs->*m_p)();
}
- T (C::*p_)() const;
+ T (C::*m_p)() const;
};
} // namespace impl