xref: /aosp_15_r20/external/angle/src/common/base/anglebase/macros.h (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1 //
2 // Copyright 2017 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 // macros.h: Compatiblity hacks for importing Chromium's MRUCache.
7 
8 #ifndef ANGLEBASE_MACROS_H_
9 #define ANGLEBASE_MACROS_H_
10 
11 // A macro to disallow the copy constructor and operator= functions.
12 // This should be used in the private: declarations for a class.
13 #define DISALLOW_COPY_AND_ASSIGN(TypeName)     \
14     TypeName(const TypeName &)       = delete; \
15     void operator=(const TypeName &) = delete
16 
17 #endif  // ANGLEBASE_MACROS_H_
18