File: fold.cpp

package info (click to toggle)
fastdds 3.1.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 58,132 kB
  • sloc: cpp: 779,516; xml: 15,119; python: 4,356; sh: 190; makefile: 93; ansic: 12
file content (16 lines) | stat: -rw-r--r-- 216 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// fold.cpp
#include <iostream>

using namespace std;

template<typename ... Args>
void printer(
        Args&&... args)
{
    (cout << ... << args) << endl;
}

int main()
{
    printer("eProsima", 0b101010, 'x');
}