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

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