dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: 2kaud

Search: Search took 0.02 seconds.

  1. Replies
    20
    Views
    2,297

    Re: How exactly does recursion work with iterators?

    Yes. Passing by reference usually just has an overhead of copying a pointer by value (either 32 or 64 bits). So anything passed which has a higher performance copying cost then this should be passed...
  2. Replies
    20
    Views
    2,297

    Re: How exactly does recursion work with iterators?

    I mean consider (I've done some other tidying up)



    #include <vector>
    #include <iostream>
    #include <string>
    #include <algorithm>
    #include <fstream>
    #include <unordered_set>
  3. Replies
    20
    Views
    2,297

    Re: How exactly does recursion work with iterators?

    If you used using to set up new type names for commonly used data types eg



    using Paii = pair<int, int>;

    template <>
    struct hash<Paii> {
    size_t operator()(const Paii& x) const noexcept
    {
Results 1 to 3 of 3


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)