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

Method Zoo

Exercises/NoModules/Chapter 15/Soln15_05/Zoo.cpp:7–9  ·  view source on GitHub ↗

Constructor from a vector of animals

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected