diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-04-11 16:48:33 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-04-11 16:48:33 +0100 |
commit | 2ef1c71756b36cee79176695998f814424492e84 (patch) | |
tree | eb2a86a6e5ff4a2120121801a77344b40834be34 /libadhocutil/plugins.h | |
parent | Fix includes for modern gcc (diff) | |
download | libadhocutil-2ef1c71756b36cee79176695998f814424492e84.tar.bz2 libadhocutil-2ef1c71756b36cee79176695998f814424492e84.tar.xz libadhocutil-2ef1c71756b36cee79176695998f814424492e84.zip |
pass iwyulibadhocutil-0.8.4
Diffstat (limited to 'libadhocutil/plugins.h')
-rw-r--r-- | libadhocutil/plugins.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libadhocutil/plugins.h b/libadhocutil/plugins.h index 3502051..c0f9cf2 100644 --- a/libadhocutil/plugins.h +++ b/libadhocutil/plugins.h @@ -4,13 +4,15 @@ #include "c++11Helpers.h" #include "unique.h" #include "visibility.h" -#include <algorithm> +#include <cstddef> #include <functional> -#include <map> +#include <iosfwd> #include <memory> #include <optional> #include <set> #include <stdexcept> +#include <string> +#include <string_view> #include <typeinfo> namespace std { @@ -160,18 +162,18 @@ namespace AdHoc { * Get a specific plugin. * @param n Name of plugin. */ - template<typename T>[[nodiscard]] std::shared_ptr<const PluginOf<T>> get(const std::string_view & n) const; + template<typename T> [[nodiscard]] std::shared_ptr<const PluginOf<T>> get(const std::string_view & n) const; /** * Get the implementation from specific plugin. * @param n Name of plugin. */ - template<typename T>[[nodiscard]] std::shared_ptr<T> getImplementation(const std::string_view & n) const; + template<typename T> [[nodiscard]] std::shared_ptr<T> getImplementation(const std::string_view & n) const; /** * Get all plugins of a given time. */ - template<typename T>[[nodiscard]] std::set<std::shared_ptr<const PluginOf<T>>> getAll() const; + template<typename T> [[nodiscard]] std::set<std::shared_ptr<const PluginOf<T>>> getAll() const; /** * The number of installed plugins. |