Add some recipes
This commit is contained in:
11
recipes/fmt/all/test_package/test_ranges.cpp
Normal file
11
recipes/fmt/all/test_package/test_ranges.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#include <cstdlib>
|
||||
#include <vector>
|
||||
#include "fmt/ranges.h"
|
||||
|
||||
int main() {
|
||||
std::vector<char> numbers;
|
||||
fmt::format_to(std::back_inserter(numbers), "{}{}{}", 1, 2, 3);
|
||||
const std::string str_numbers = fmt::format("{}", numbers);
|
||||
fmt::print("numbers: {}\n", str_numbers);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Reference in New Issue
Block a user