MCPcopy Create free account
hub / github.com/AllentDan/LibtorchTutorials / ordered_map

Method ordered_map

lesson6-Segmentation/json.hpp:16417–16417  ·  view source on GitHub ↗

Explicit constructors instead of `using Container::Container` otherwise older compilers choke on it (GCC <= 5.5, xcode <= 9.4)

Source from the content-addressed store, hash-verified

16415 // Explicit constructors instead of `using Container::Container`
16416 // otherwise older compilers choke on it (GCC <= 5.5, xcode <= 9.4)
16417 ordered_map(const Allocator& alloc = Allocator()) : Container{alloc} {}
16418 template <class It>
16419 ordered_map(It first, It last, const Allocator& alloc = Allocator())
16420 : Container{first, last, alloc} {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected