MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / Array.h

File Array.h

Examples/NoModules/Chapter 17/Ex17_01A/Array.h:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// This solution uses
2// 1) the const-and-back-again idiom to avoid code duplication
3// between the non-const and const overloads of the array subscript operators.
4// 2) the copy-and-swap idiom for a thread-safe copy assignment operator

Callers

nothing calls this directly

Calls 1

swapFunction · 0.70

Tested by

no test coverage detected