GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - DronPop/format: String interpolation. An example of using Parameter pack in C++.

BranchesTags
Open more actions menu

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
Example
Example
 
 
PrivateHeaders
PrivateHeaders
 
 
PublicHeaders
PublicHeaders
 
 
.DS_Store
.DS_Store
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

format

  • Introduction
  • Getting Started
    • Simple example using format
    • Basic Installation
  • Features
    • Advantages
    • Disadvantages

Introduction

This project is analogous to QString :: arg and other similar means of string interpolation. The key is the use of using C++ Parameter pack.

Getting Started

Simple example using format

std::string result = formated("int = %, double = %, std::string = %, const char * = %, bool = %",
                                     1,          3.14,            str,              "char*",  true);
//string = "int = 1, double = 3.140000, std::string = testString, const char * = char*, bool = 1".

Basic Installation

  1. git clone https://github.com/DronPop/format.git
  2. cd format/Example
  3. mkdir build
  4. cd build
  5. cmake .. -G "IDAName"
  6. open SolutionName

Features

Advantages

  • Strongly typed
  • Can be used with all standard types
  • Ability to use with custom types. For that overload operator<<(std::ostream& out_, const CustomClass& obj_);

Disadvantages

  • May be complile time.

About

String interpolation. An example of using Parameter pack in C++.

Topics

parameter-packstring-interpolation

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.