Author Topic: How does direct comparison between tuples in c++ work?  (Read 187 times)

Offline Rayyan

  • 1
  • Newbie
  • *
  • Posts: 0
  • Karma: +0/-0
    • View Profile
How does direct comparison between tuples in c++ work?
« on: November 17, 2016, 07:04:54 PM »
Hi everyone, I have a question that has bothered me for a long time, how does direct comparison between tuples in c++ work? Thank you kindly for giving me your help as soon as possible.
« Last Edit: April 30, 2017, 10:00:45 AM by Sofyene »



Offline Aleksander

  • 1
  • Newbie
  • *
  • Posts: 0
  • Karma: +0/-0
    • View Profile
Re: Between tuples in c++ work
« Reply #1 on: April 30, 2017, 10:02:53 AM »
The C++ tuple syntax can be quite a bit more verbose than most people would like.

Consider:

typedef boost::tuple<MyClass1,MyClass2,MyClass3> MyTuple;
So if you want to make extensive use of tuples you either get tuple typedefs everywhere or you get annoyingly long type names everywhere. I like tuples. I use them when necessary. But it's usually limited to a couple of situations, like an N-element index or when using multimaps to tie the range iterator pairs. And it's usually in a very limited scope.


 

Sitemap 1 2 3 4 5 6 7 8 9