diff options
| author | Alexey Bykov <[email protected]> | 2022-02-10 16:47:16 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:47:16 +0300 |
| commit | b50730a77e0c38f2fec0ad5d53fb2034d6470221 (patch) | |
| tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 /library/cpp/object_factory | |
| parent | 4cadece7a57ab767e762a0bea1995a596aefeb11 (diff) | |
Restoring authorship annotation for Alexey Bykov <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/object_factory')
| -rw-r--r-- | library/cpp/object_factory/object_factory.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/library/cpp/object_factory/object_factory.h b/library/cpp/object_factory/object_factory.h index f479d18edf4..96cc11bcfde 100644 --- a/library/cpp/object_factory/object_factory.h +++ b/library/cpp/object_factory/object_factory.h @@ -145,12 +145,12 @@ namespace NObjectFactory { return Singleton<TObjectFactory<TProduct, TKey>>()->GetKeys(keys); } - static TSet<TKey> GetRegisteredKeys() { - TSet<TKey> keys; - Singleton<TObjectFactory<TProduct, TKey>>()->GetKeys(keys); - return keys; - } - + static TSet<TKey> GetRegisteredKeys() { + TSet<TKey> keys; + Singleton<TObjectFactory<TProduct, TKey>>()->GetKeys(keys); + return keys; + } + template <class TDerivedProduct> static TSet<TKey> GetRegisteredKeys() { TSet<TKey> registeredKeys(GetRegisteredKeys()); @@ -212,12 +212,12 @@ namespace NObjectFactory { return Singleton<TParametrizedObjectFactory<TProduct, TKey, TArgs...>>()->GetKeys(keys); } - static TSet<TKey> GetRegisteredKeys() { - TSet<TKey> keys; - Singleton<TParametrizedObjectFactory<TProduct, TKey, TArgs...>>()->GetKeys(keys); - return keys; - } - + static TSet<TKey> GetRegisteredKeys() { + TSet<TKey> keys; + Singleton<TParametrizedObjectFactory<TProduct, TKey, TArgs...>>()->GetKeys(keys); + return keys; + } + template <class Product> class TRegistrator { public: |
