GitHub - xdbr/cpp-poc: Proof-of-concept collection for C++

GitHub

GitHub CopilotWrite better code with AI | MCP RegistryIntegrate external tools | ActionsAutomate any workflow | CodespacesInstant dev environments | IssuesPlan and track work | Code ReviewManage code changes | Code QualityEnforce quality at merge | Why GitHub | Marketplace | View all features | Enterprises | Small and medium teams | Startups | View all use cases | View all industries | View all solutions | AI | Software Development | DevOps | Security | View all topics | Customer stories | Events & webinars | Ebooks & reports | Business insights | Trust center | Partners | View all resources

Proof-of-concept collection for C++

Contents

benchmark

Benchmarking utilities

defer

Defer action to end of scope

generic-serialize

Serialize arbitrary containers to binary files (and read them back in again) (includes TMP: Template Meta-Programming)

lazy-evaluation

Lazily evaluate variables by providing builder methods (and memoize those build values)

make-unique

C++14's make_unique. It was simply forgotten to be added to C++11

member-dispatch

Dispatch to different member methods based on the type the class was instantiated with.

multidimensional-array

Safe multidimensional arrays like in C, but in C++11 (includes TMP)

range

Leave those old-style for loops behind.

pipe

-Ofun unix like pipes for containers

times

Do something x times