mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 10:29:02 +08:00
Changed clang formatting for templates
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
#include <unordered_map>
|
||||
|
||||
namespace spdlog { namespace details {
|
||||
template <class Mutex> class registry_t
|
||||
template<class Mutex> class registry_t
|
||||
{
|
||||
public:
|
||||
registry_t<Mutex>(const registry_t<Mutex> &) = delete;
|
||||
@@ -44,7 +44,7 @@ public:
|
||||
return found == _loggers.end() ? nullptr : found->second;
|
||||
}
|
||||
|
||||
template <class It> std::shared_ptr<logger> create(const std::string &logger_name, const It &sinks_begin, const It &sinks_end)
|
||||
template<class It> std::shared_ptr<logger> create(const std::string &logger_name, const It &sinks_begin, const It &sinks_end)
|
||||
{
|
||||
std::lock_guard<Mutex> lock(_mutex);
|
||||
throw_if_exists(logger_name);
|
||||
@@ -69,7 +69,7 @@ public:
|
||||
return new_logger;
|
||||
}
|
||||
|
||||
template <class It>
|
||||
template<class It>
|
||||
std::shared_ptr<async_logger> create_async(const std::string &logger_name, size_t queue_size,
|
||||
const async_overflow_policy overflow_policy, const std::function<void()> &worker_warmup_cb,
|
||||
const std::chrono::milliseconds &flush_interval_ms, const std::function<void()> &worker_teardown_cb, const It &sinks_begin,
|
||||
|
Reference in New Issue
Block a user