4#ifndef _Stroika_Frameworks_Auth_CurrentIdentity_h_
5#define _Stroika_Frameworks_Auth_CurrentIdentity_h_ 1
7#include "Stroika/Frameworks/StroikaPreComp.h"
9#include "Stroika/Foundation/Common/Common.h"
10#include "Stroika/Foundation/Common/Concepts.h"
18namespace Stroika::Frameworks::Auth {
38 {
static_cast<bool> (t) } -> Common::Boolean_testable;
39 static_cast<bool> (T{}) ==
false;
65 template <IIdentityManagerCompatibleID ID_OBJ>
70 using IDType = ID_OBJ;
96 static void Set (IDType
id);
100 static void clear ();
103#if qCompilerAndStdLib_thread_local_static_inline_twice_Buggy
104 static IDType& sCurrent_BWA_ ()
106 static thread_local IDType sCurrent_;
110 static inline thread_local IDType sCurrent_;
121#include "CurrentIdentity.inl"
sets the current ID to argument value -
static/thread_local storage of the some notion of identity, which can be used to 'pass data' to funct...
static IDType Get()
if no identity set with Establish, and maybe even if it has been set, Get() == false
static void Set(IDType id)
if no identity set with Establish, and maybe even if it has been set, Get() == false