| title |
sync_none Class | Microsoft Docs |
| ms.custom |
|
| ms.date |
11/04/2016 |
| ms.reviewer |
|
| ms.suite |
|
| ms.technology |
|
| ms.tgt_pltfrm |
|
| ms.topic |
article |
| f1_keywords |
sync_none |
allocators/stdext::sync_none |
stdext::sync_none |
allocators/stdext::sync_none::allocate |
allocators/stdext::sync_none::deallocate |
allocators/stdext::sync_none::equals |
|
| dev_langs |
|
| helpviewer_keywords |
|
| ms.assetid |
f7473cee-14f3-4fe1-88bc-68cd085e59e1 |
| caps.latest.revision |
21 |
| author |
corob-msft |
| ms.author |
corob |
| manager |
ghogen |
| translation.priority.ht |
cs-cz |
de-de |
es-es |
fr-fr |
it-it |
ja-jp |
ko-kr |
pl-pl |
pt-br |
ru-ru |
tr-tr |
zh-cn |
zh-tw |
|
Describes a synchronization filter that provides no synchronization.
template <class Cache>
class sync_none
|
|
| allocate |
Allocates a block of memory. |
| deallocate |
Frees a specified number of objects from storage beginning at a specified position. |
| equals |
Compares two caches for equality. |
Header: <allocators>
Namespace: stdext
Allocates a block of memory.
void *allocate(std::size_t count);
| Parameter |
Description |
count |
The number of elements in the array to be allocated. |
Remarks
The member function returns cache.allocate(count), where cache is the cache object.
Frees a specified number of objects from storage beginning at a specified position.
void deallocate(void* ptr, std::size_t count);
| Parameter |
Description |
ptr |
A pointer to the first object to be deallocated from storage. |
count |
The number of objects to be deallocated from storage. |
Remarks
The member function calls cache.deallocate(ptr, count), where cache represents the cache object.
Compares two caches for equality.
bool equals(const sync<Cache>& Other) const;
| Parameter |
Description |
Cache |
The cache object of the synchronization filter. |
Other |
The cache object to compare for equality. |
The member function always returns true.
Remarks
<allocators>