ATLAS Offline Software
Loading...
Searching...
No Matches
no_unique_address.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2/*
3 * Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration.
4 */
18
19
20#ifndef CXXUTILS_NO_UNIQUE_ADDRESS_H
21#define CXXUTILS_NO_UNIQUE_ADDRESS_H
22
23
24#if !defined(HAVE_NO_UNIQUE_ADDRESS) && defined(__has_cpp_attribute)
25# if __has_cpp_attribute(no_unique_address)
26# define HAVE_NO_UNIQUE_ADDRESS 1
27# endif
28#endif
29#if !defined(HAVE_NO_UNIQUE_ADDRESS)
30# define HAVE_NO_UNIQUE_ADDRESS 0
31#endif
32
33#if HAVE_NO_UNIQUE_ADDRESS
34# define ATH_NO_UNIQUE_ADDRESS [[no_unique_address]]
35#else
36# define ATH_NO_UNIQUE_ADDRESS
37#endif
38
39
40#endif // not CXXUTILS_NO_UNIQUE_ADDRESS_H