7namespace Stroika::Frameworks::Auth {
14 template <IIdentityManagerCompatibleID ID_OBJ>
17#if qCompilerAndStdLib_thread_local_static_inline_twice_Buggy
18 Require (!sCurrent_BWA_ ());
19 sCurrent_BWA_ () = id;
25 template <IIdentityManagerCompatibleID ID_OBJ>
28#if qCompilerAndStdLib_thread_local_static_inline_twice_Buggy
29 sCurrent_BWA_ () = IDType{};
30 Ensure (!sCurrent_BWA_ ());
36 template <IIdentityManagerCompatibleID ID_OBJ>
39#if qCompilerAndStdLib_thread_local_static_inline_twice_Buggy
40 return sCurrent_BWA_ ();
45 template <IIdentityManagerCompatibleID ID_OBJ>
48#if qCompilerAndStdLib_thread_local_static_inline_twice_Buggy
49 sCurrent_BWA_ () = id;
54 template <IIdentityManagerCompatibleID ID_OBJ>
57#if qCompilerAndStdLib_thread_local_static_inline_twice_Buggy
58 sCurrent_BWA_ () = ID_OBJ{};
Establish(const IDType &id)
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