mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 21:13:35 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -6,14 +6,19 @@ namespace stl_iterator_detail
|
||||
{
|
||||
struct Dummy
|
||||
{
|
||||
template <class T> Dummy & operator=(T const &) { return *this; }
|
||||
template <class T>
|
||||
Dummy & operator=(T const &)
|
||||
{
|
||||
return *this;
|
||||
}
|
||||
};
|
||||
} // namespace stl_iterator_detail
|
||||
|
||||
class CounterIterator :
|
||||
public boost::iterator_facade<CounterIterator, stl_iterator_detail::Dummy, boost::forward_traversal_tag>
|
||||
class CounterIterator
|
||||
: public boost::iterator_facade<CounterIterator, stl_iterator_detail::Dummy, boost::forward_traversal_tag>
|
||||
{
|
||||
size_t m_count;
|
||||
|
||||
public:
|
||||
CounterIterator() : m_count(0) {}
|
||||
size_t GetCount() const { return m_count; }
|
||||
|
||||
Reference in New Issue
Block a user