LeafValueDictionary.h 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. #pragma once
  6. namespace JsUtil
  7. {
  8. template <
  9. class TKey,
  10. class TValue,
  11. class SizePolicy = PowerOf2SizePolicy,
  12. template <typename ValueOrKey> class Comparer = DefaultComparer,
  13. template <typename K, typename V> class Entry = SimpleDictionaryEntry,
  14. class LockPolicy = Js::DefaultListLockPolicy, // Controls lock policy for read/map/write/add/remove items
  15. class SyncObject = CriticalSection
  16. >
  17. struct LeafValueDictionary
  18. {
  19. typedef JsUtil::SynchronizedDictionary<TKey,
  20. TValue,
  21. RecyclerLeafAllocator,
  22. SizePolicy,
  23. Comparer,
  24. Entry,
  25. LockPolicy,
  26. SyncObject
  27. > Type;
  28. };
  29. };