Repository navigation
Format specifier & fmt 8 support
·
0 commits
to 604be9d58521c2cca8fb630065b0eb62dde5ce24
since this release
- A new parameter has been added to
join,strJoinandtoString()to specify the{fmt}formatting rules. A default value of"{}"is given, so no syntactic changes. Example:
std::array<double, 4> array = {1.12, 1.12, 1.12, 1.12};
auto str = lz::strJoin(array, ", ", "{:.1f}");
// str == "1.1, 1.1, 1.1, 1.1"
// or
for (std::string s : lz::join(array, ", ", "{:.1f}") {
// do something with s
}- Added extra
to<>overload, that enables:to<std::list<int>>(args...)instead of justto<std::list>(args...). - Reduced symbol sizes by
if constexprandenable if - Removed reference from
referencetypedef inlz::range - Added
std::decayinto<>container type, which would normally cause a compile error - Fixed CMake lz standalone issues
- Fixed a move that did not do anything 9ae8ec0
{fmt}version 8 support- Added member methods:
copyToandtransformTothat copies/transforms the current view inside the given output iterator.