介绍了一种调用成员函数时使用tuple解包的方法。
也可以通过make_index_sequence的方式进行解包:
#include <iostream>
#include <tuple>
#include <string>
using namespace std;
class A{
public:
void pOut(int d, string str)
{
cout<<"this is A object,
介绍了一种调用成员函数时使用tuple解包的方法。
也可以通过make_index_sequence的方式进行解包:
#include <iostream>
#include <tuple>
#include <string>
using namespace std;
class A{
public:
void pOut(int d, string str)
{
cout<<"this is A object,