◆ deque() [1/2]
29452 : original(std::move(other)) {
29453 }
◆ deque() [2/2]
template<bool INTERNAL_SAFE>
29455 : original(std::move(other)) {
29456 }
◆ AssertIndexInBounds()
29430 {
29431#if defined(DUCKDB_DEBUG_NO_SAFETY) || defined(DUCKDB_CLANG_TIDY)
29432 return;
29433#else
29434 if (DUCKDB_UNLIKELY(index >= size)) {
29435 throw InternalException("Attempted to access index %ld within deque of size %ld", index, size);
29436 }
29437#endif
29438 }
◆ clear()
29445 {
29446 original::clear();
29447 }
◆ get() [1/2]
template<bool INTERNAL_SAFE = false>
29459 {
29460 if (MemorySafety<INTERNAL_SAFE>::ENABLED) {
29461 AssertIndexInBounds(__n, original::size());
29462 }
29463 return original::operator[](__n);
29464 }
◆ get() [2/2]
template<bool INTERNAL_SAFE = false>
29467 {
29468 if (MemorySafety<INTERNAL_SAFE>::ENABLED) {
29469 AssertIndexInBounds(__n, original::size());
29470 }
29471 return original::operator[](__n);
29472 }
◆ operator[]() [1/2]
29474 {
29475 return get<SAFE>(__n);
29476 }
◆ operator[]() [2/2]
29477 {
29478 return get<SAFE>(__n);
29479 }
◆ front() [1/2]
29481 {
29482 if (MemorySafety<SAFE>::ENABLED && original::empty()) {
29483 throw InternalException("'front' called on an empty deque!");
29484 }
29485 return get<SAFE>(0);
29486 }
◆ front() [2/2]
29488 {
29489 if (MemorySafety<SAFE>::ENABLED && original::empty()) {
29490 throw InternalException("'front' called on an empty deque!");
29491 }
29492 return get<SAFE>(0);
29493 }
◆ back() [1/2]
29495 {
29496 if (MemorySafety<SAFE>::ENABLED && original::empty()) {
29497 throw InternalException("'back' called on an empty deque!");
29498 }
29499 return get<SAFE>(original::size() - 1);
29500 }
◆ back() [2/2]
29502 {
29503 if (MemorySafety<SAFE>::ENABLED && original::empty()) {
29504 throw InternalException("'back' called on an empty deque!");
29505 }
29506 return get<SAFE>(original::size() - 1);
29507 }
The documentation for this class was generated from the following file: