mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-12-25 21:35:41 +00:00
22 lines
539 B
C++
22 lines
539 B
C++
|
#ifndef SPROUT_UTILITY_NONCOPYABLE_HPP
|
||
|
#define SPROUT_UTILITY_NONCOPYABLE_HPP
|
||
|
|
||
|
#include <sprout/config.hpp>
|
||
|
|
||
|
namespace sprout {
|
||
|
namespace noncopyable_ {
|
||
|
class noncopyable {
|
||
|
public:
|
||
|
SPROUT_CONSTEXPR noncopyable() = default;
|
||
|
noncopyable(noncopyable const&) = delete;
|
||
|
noncopyable& operator=(noncopyable const&) = delete;
|
||
|
};
|
||
|
} // namespace noncopyable_
|
||
|
//
|
||
|
// noncopyable
|
||
|
//
|
||
|
typedef sprout::noncopyable_::noncopyable noncopyable;
|
||
|
} // namespace sprout
|
||
|
|
||
|
#endif // #ifndef SPROUT_UTILITY_NONCOPYABLE_HPP
|