diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-11 00:16:40 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-17 20:13:23 +0100 |
| commit | d95eacd3851a20e52202465ec22b4f72a4983dc8 (patch) | |
| tree | 1dfc1092ae7d2e6b6b7c313ad808415f578d9712 /src/ref.h | |
| parent | cbee0d077e698541afcea82a95bafcea5245ab89 (diff) | |
Replace std::list with std::vector in the API.
Diffstat (limited to 'src/ref.h')
| -rw-r--r-- | src/ref.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -54,8 +54,8 @@ namespace dcp { * which represents the thing. * * If the Ref does not have a shared_ptr it may be given one by - * calling resolve() with a list of assets. The shared_ptr will be - * set up using any object on the list which has a matching ID. + * calling resolve() with a vector of assets. The shared_ptr will be + * set up using any object on the vector which has a matching ID. */ class Ref { @@ -77,7 +77,7 @@ public: _id = id; } - void resolve (std::list<std::shared_ptr<Asset> > assets); + void resolve (std::vector<std::shared_ptr<Asset>> assets); /** @return the ID of the thing that we are pointing to */ std::string id () const { |
