Utility Rack
|
Example code demonstrating use of chops::repeat
.
More...
#include <iostream>
#include <cstdlib>
#include <string>
#include <cstdint>
#include "utility/repeat.hpp"
Classes | |
class | Factorial |
Functions | |
void | printHello () |
void | printNum (int num) |
const void | calcFactorial (bool print) |
void | advanceFactorial () |
void | printFactorial () |
int | main () |
Variables | |
void(* | helloPtr )() = printHello |
constexpr auto | printLn = [] () { std::cout << std::endl; } |
constexpr auto | printStr = [] (std::string str) { std::cout << str << std::endl; } |
Example code demonstrating use of chops::repeat
.
Copyright (c)2019 by Thurman Gillespy 3/22/19
Minor update 4/4/2025, adding <cstdint> include.
Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Sample make file: g++ -std=c++17 -I ~/Projects/utility-rack/include/ repeatDemo.cpp