Statistics
| Revision:

root / tmp / org.txm.statsengine.r.core.win32 / res / win32 / library / BH / include / boost / accumulators / numeric / detail / pod_singleton.hpp @ 2486

History | View | Annotate | Download (530 Bytes)

1 2486 sjacqu01
// Copyright David Abrahams 2006. Distributed under the Boost
2 2486 sjacqu01
// Software License, Version 1.0. (See accompanying
3 2486 sjacqu01
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
4 2486 sjacqu01
#ifndef BOOST_DETAIL_POD_SINGLETON_DWA200655_HPP
5 2486 sjacqu01
# define BOOST_DETAIL_POD_SINGLETON_DWA200655_HPP
6 2486 sjacqu01
7 2486 sjacqu01
namespace boost { namespace detail {
8 2486 sjacqu01
9 2486 sjacqu01
template<typename T>
10 2486 sjacqu01
struct pod_singleton
11 2486 sjacqu01
{
12 2486 sjacqu01
    static T instance;
13 2486 sjacqu01
};
14 2486 sjacqu01
15 2486 sjacqu01
template<typename T>
16 2486 sjacqu01
T pod_singleton<T>::instance;
17 2486 sjacqu01
18 2486 sjacqu01
}} // namespace boost::detail
19 2486 sjacqu01
20 2486 sjacqu01
#endif // BOOST_DETAIL_POD_SINGLETON_DWA200655_HPP