Stroika Library
3.0d23
Help-Home
Loading...
Searching...
No Matches
Empty.h
Go to the documentation of this file.
1
/*
2
* Copyright(c) Sophist Solutions, Inc. 1990-2026. All rights reserved
3
*/
4
#ifndef _Stroika_Foundation_Common_Empty_h_
5
#define _Stroika_Foundation_Common_Empty_h_ 1
6
7
#include "Stroika/Foundation/StroikaPreComp.h"
8
9
#include <type_traits>
10
11
/**
12
* \file
13
*
14
* \note Code-Status: <a href="Code-Status.md#Beta">Beta</a>
15
*/
16
17
namespace
Stroika::Foundation::Common
{
18
19
/**
20
* Believe it or not, this is often useful in template metaprogramming. Because you cannot declare a data member as 'void'. This amounts to same thing if used with [[no_unique_address]]/qStroika_ATTRIBUTE_NO_UNIQUE_ADDRESS
21
*/
22
struct
Empty
{};
23
static_assert
(std::is_empty_v<Empty>);
24
25
}
26
27
/*
28
********************************************************************************
29
***************************** Implementation Details ***************************
30
********************************************************************************
31
*/
32
33
#endif
/*_Stroika_Foundation_Common_Empty_h_*/
Stroika::Foundation::Common
Definition
Character.inl:624
Stroika::Foundation::Common::Empty
Definition
Empty.h:22
Library
Sources
Stroika
Foundation
Common
Empty.h
Generated by
1.9.8