Changeset 4023


Ignore:
Timestamp:
Jan 4, 2021, 11:47:34 AM (9 months ago)
Author:
Peter
Message:

refs #968; Segment constrctor taking rvalues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/Segment.h

    r3855 r4023  
    6666    Segment(const T& begin, const T& end)
    6767      : begin_(begin), end_(end) {}
     68
     69    /**
     70       \brief Constructor
     71
     72       Creates a segment [begin, end)
     73
     74       \since New in yat 0.19
     75     */
     76    Segment(T&& begin, T&& end)
     77      : begin_(std::move(begin)), end_(std::move(end)) {}
    6878
    6979    /**
Note: See TracChangeset for help on using the changeset viewer.