blob: 8d12a7b135876908875bc9bb3410a127243c8680 [file] [log] [blame]
henrike@webrtc.orgf0488722014-05-13 18:00:26 +00001/*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
Steve Anton10542f22019-01-11 09:11:00 -080011#ifndef RTC_BASE_CONSTRUCTOR_MAGIC_H_
12#define RTC_BASE_CONSTRUCTOR_MAGIC_H_
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000013
Henrik Kjellanderec78f1c2017-06-29 07:52:50 +020014// A macro to disallow the copy constructor and operator= functions. This should
15// be used in the declarations for a class.
16#define RTC_DISALLOW_COPY_AND_ASSIGN(TypeName) \
17 TypeName(const TypeName&) = delete; \
Niels Möllerde953292020-09-29 09:46:21 +020018 TypeName& operator=(const TypeName&) = delete
tommi9a78d222015-09-10 01:41:55 -070019
Steve Anton10542f22019-01-11 09:11:00 -080020#endif // RTC_BASE_CONSTRUCTOR_MAGIC_H_