Utility Rack
Loading...
Searching...
No Matches

Example code demonstrating use of chops::repeat. More...

#include <iostream>
#include <cstdlib>
#include <string>
#include <cstdint>
#include "utility/repeat.hpp"
Include dependency graph for repeat_example.cpp:

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; }
 

Detailed Description

Example code demonstrating use of chops::repeat.

Author
Thurman Gillespy

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