summaryrefslogtreecommitdiff
path: root/include/mbgl/util/noncopyable.hpp
blob: 1789a36de929c8a1e34c05ae0677f54c1ba157a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef MBGL_UTIL_NONCOPYABLE
#define MBGL_UTIL_NONCOPYABLE

namespace mbgl { namespace util {

namespace non_copyable_
{

class noncopyable
{
protected:
    constexpr noncopyable() = default;
    ~noncopyable() = default;
    noncopyable( noncopyable const& ) = delete;
    noncopyable& operator=(noncopyable const& ) = delete;
};
} // namespace non_copyable_

typedef non_copyable_::noncopyable noncopyable;

} // namespace util
} // namespace mbgl

#endif