Revision 01158b1ce1b225f46caad4bc9d321e4e6a14d8fa authored by Thomas Fischer on 07 December 2020, 10:50:49 UTC, committed by Thomas Fischer on 07 December 2020, 10:50:49 UTC
1 parent e087193
Counter.h
/**
* \file
* \copyright
* Copyright (c) 2012-2020, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#pragma once
#include <cstddef>
namespace BaseLib
{
template <typename X>
struct Counter
{
Counter()
{
_counter_value++;
}
static std::size_t _counter_value;
};
template <typename X> std::size_t Counter<X>::_counter_value(0);
} // end namespace BaseLib
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...