You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ring_buffer(std::initializer_list<value_type> ilist, const allocator_type& allocator = allocator_type()); // This function sets the capacity to be equal to the size of the initializer list.
242
+
ring_buffer(std::initializer_list<value_type> ilist, const allocator_type& allocator = EASTL_RING_BUFFER_DEFAULT_ALLOCATOR); // This function sets the capacity to be equal to the size of the initializer list.
Copy file name to clipboardExpand all lines: include/EASTL/internal/hashtable.h
+22-15Lines changed: 22 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -112,13 +112,19 @@ namespace eastl
112
112
template <typename Value, bool bCacheHashCode>
113
113
structhash_node;
114
114
115
-
EA_DISABLE_VC_WARNING(4625) //disable warning: "copy constructor could not be generated because a base class copy constructor is inaccessible or deleted"
115
+
EA_DISABLE_VC_WARNING(46254626) // "copy constructor / assignment operator could not be generated because a base class copy constructor is inaccessible or deleted"
116
116
#ifdef EA_COMPILER_MSVC_2015
117
117
EA_DISABLE_VC_WARNING(5026) // disable warning: "move constructor was implicitly defined as deleted"
if(mAllocator == x.mAllocator) // If allocators are equivalent...
1521
-
{
1522
-
// We leave mAllocator as-is.
1523
-
hash_code_base<K, V, EK, Eq, H1, H2, H, bC>::base_swap(x); // hash_code_base has multiple implementations, so we let them handle the swap.
1524
-
eastl::swap(mRehashPolicy, x.mRehashPolicy);
1525
-
EASTL_MACRO_SWAP(node_type**, mpBucketArray, x.mpBucketArray); // Use EASTL_MACRO_SWAP because GCC (at least v4.6-4.8) has a bug where it fails to compile eastl::swap(mpBucketArray, x.mpBucketArray).
1526
-
eastl::swap(mnBucketCount, x.mnBucketCount);
1527
-
eastl::swap(mnElementCount, x.mnElementCount);
1528
-
}
1529
-
else
1532
+
hash_code_base<K, V, EK, Eq, H1, H2, H, bC>::base_swap(x); // hash_code_base has multiple implementations, so we let them handle the swap.
1533
+
eastl::swap(mRehashPolicy, x.mRehashPolicy);
1534
+
eastl::swap(mpBucketArray, x.mpBucketArray);
1535
+
eastl::swap(mnBucketCount, x.mnBucketCount);
1536
+
eastl::swap(mnElementCount, x.mnElementCount);
1537
+
1538
+
if (mAllocator != x.mAllocator) // If allocators are not equivalent...
1530
1539
{
1531
-
const this_type temp(*this); // Can't call eastl::swap because that would
1532
-
*this = x; // itself call this member swap function.
structis_function<ReturnValue /*FunctionName*/(ArgPack..., ...)> // The second ellipsis handles the case of a function that takes ellipsis, like printf.
0 commit comments