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

namespace mbgl { namespace util {

namespace non_copyable_
{

class noncopyable
{
public:
    noncopyable( noncopyable const& ) = delete;
    noncopyable& operator=(noncopyable const& ) = delete;

protected:
    constexpr noncopyable() = default;
    ~noncopyable() = default;
};
} // namespace non_copyable_

using noncopyable = non_copyable_::noncopyable;

} // namespace util
} // namespace mbgl