Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v38r0 (2143aa4c)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
CounterArray.cpp
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
12 #include <fmt/format.h>
13 
14 #if FMT_VERSION < 80000
15 namespace fmt {
16  template <typename T>
17  const T& runtime( const T& v ) {
18  return v;
19  }
20 } // namespace fmt
21 #endif
22 
24  return fmt::format( fmt::runtime( text ), n );
25 }
Gaudi::Accumulators::details::FormatCounterDefault::operator()
std::string operator()(size_t n)
Definition: CounterArray.cpp:23
std::string
STL class.
fmt::runtime
const T & runtime(const T &v)
Definition: MessageSvcSink.cpp:28
format
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
Definition: MsgStream.cpp:119
GaudiPluginService.cpluginsvc.n
n
Definition: cpluginsvc.py:234
fmt
Definition: MessageSvcSink.cpp:26
CounterArray.h
Properties.v
v
Definition: Properties.py:122
Gaudi::Accumulators::details::FormatCounterDefault::text
std::string_view text
Definition: CounterArray.h:27