Skip to content
This repository was archived by the owner on May 28, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions include/noncopyable.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Copyright (c) 2017, Baidu.com, Inc. All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//

#ifndef BAIDU_COMMON_NONCOPYABLE_H_
#define BAIDU_COMMON_NONCOPYABLE_H_

namespace baidu {
namespace common {

class noncopyable {
public:
noncopyable() {}
~noncopyable() {}
private:
noncopyable(const noncopyable&) {}
void operator=(const noncopyable&) {}
};

} // namespace common
} // namespace baidu

#endif // BAIDU_COMMON_NONCOPYABLE_H_