MCPcopy Create free account
hub / github.com/dmlc/dmlc-core / operator[]

Method operator[]

include/dmlc/concurrentqueue.h:1593–1596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1591 }
1592
1593 inline T *operator[](index_t idx) MOODYCAMEL_NOEXCEPT {
1594 return static_cast<T *>(static_cast<void *>(elements)) +
1595 static_cast<size_t>(idx & static_cast<index_t>(BLOCK_SIZE - 1));
1596 }
1597
1598 inline T const *operator[](index_t idx) const MOODYCAMEL_NOEXCEPT {
1599 return static_cast<T const *>(static_cast<void const *>(elements)) +

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected