db/*: use std::span instead of ConstBuffer

This commit is contained in:
Max Kellermann
2022-07-04 18:26:23 +02:00
parent 4fb8b45111
commit b9c9a5f1dd
9 changed files with 22 additions and 26 deletions

View File

@@ -24,6 +24,7 @@
#include "tag/Type.h"
#include <chrono>
#include <span>
#include <string>
struct DatabasePlugin;
@@ -31,7 +32,6 @@ struct DatabaseStats;
struct DatabaseSelection;
struct LightSong;
template<typename Key> class RecursiveMap;
template<typename T> struct ConstBuffer;
class Database {
const DatabasePlugin &plugin;
@@ -111,7 +111,7 @@ public:
* Throws on error.
*/
virtual RecursiveMap<std::string> CollectUniqueTags(const DatabaseSelection &selection,
ConstBuffer<TagType> tag_types) const = 0;
std::span<const TagType> tag_types) const = 0;
/**
* Throws on error.