Archived

This forum has been archived. Please start a new discussion on GitHub.

How to use pair?

how to use pair just like pair<const Ice::Byte*, const Ice::Byte*> byteArr;

i need copy huge big data soon,want use it.

by the way,looks like also need [cpp:array] in .ice,why?

ths guy .

and .ice & .cpp under.

Throughput.ice:

sequence<byte> ByteSeq;
const int ByteSeqSize = 500000;


client.cpp

ByteSeq byteSeq(ByteSeqSize);
pair<const Ice::Byte*, const Ice::Byte*> byteArr;
byteArr.first = &byteSeq[0];
byteArr.second = byteArr.first + byteSeq.size();

Comments