Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::HintFmt Class Reference

#include <fmt.hh>

Public Member Functions

 HintFmt (const std::string &literal)
template<typename... Args>
 HintFmt (const std::string &format, const Args &... args)
 HintFmt (const HintFmt &hf)
HintFmtoperator= (HintFmt const &rhs)=default
std::string str () const

Detailed Description

A wrapper around boost::format which colors interpolated arguments in magenta by default.

Constructor & Destructor Documentation

◆ HintFmt() [1/2]

nix::HintFmt::HintFmt ( const std::string & literal)

Format the given string literally, without interpolating format placeholders.

◆ HintFmt() [2/2]

template<typename... Args>
nix::HintFmt::HintFmt ( const std::string & format,
const Args &... args )
inline

Interpolate the given arguments into the format string.


The documentation for this class was generated from the following files:
  • lix/libutil/fmt.hh
  • lix/libutil/fmt.cc