Changeset 4025


Ignore:
Timestamp:
Jan 14, 2021, 3:59:03 AM (8 months ago)
Author:
Peter
Message:

add move constructor for BamPair?

Location:
trunk/yat/omic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/omic/BamPair.cc

    r3792 r4025  
    3737  BamPair::BamPair(const BamRead& first, const BamRead& second)
    3838    : first_(first), second_(second) {}
     39
     40
     41  BamPair::BamPair(BamRead&& first, BamRead&& second)
     42    : first_(std::move(first)), second_(std::move(second)) {}
    3943
    4044
  • trunk/yat/omic/BamPair.h

    r3792 r4025  
    4646     */
    4747    BamPair(const BamRead& first, const BamRead& second);
     48
     49    /**
     50       \brief Move constructor
     51
     52       \since New in yat 0.19
     53     */
     54    BamPair(BamRead&& first, BamRead&& second);
    4855
    4956    /**
Note: See TracChangeset for help on using the changeset viewer.