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

Method Zoo

Exercises/Modules/Chapter 15/Soln15_03/Zoo.cpp:9–11  ·  view source on GitHub ↗

Constructor from a vector of animals

Source from the content-addressed store, hash-verified

7
8// Constructor from a vector of animals
9Zoo::Zoo(const std::vector<AnimalPtr>& animals)
10 : m_animals{ animals }
11{}
12
13// Add an animal to the zoo
14void Zoo::addAnimal(AnimalPtr animal)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected