Making Iterators, Views and Containers Easier to Write with Boost.STLInterfaces - Zach Laine CppCon

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ม.ค. 2025

ความคิดเห็น • 2

  • @keris3920
    @keris3920 4 ปีที่แล้ว +1

    Brilliant. Interface/contract-based programming makes implementation much easier on on newcomers, which is something I think the could improve on. Consider me an adopter.

  • @peepzorz
    @peepzorz 4 ปีที่แล้ว

    @7:40 For your comparison operators = , is there a good reason to also call operator== ? I would think its more efficient to just logical negate the "opposite" operation, so only operator< is required for those. Like this (hopefully youtube comment doesn't mangle code paste here):
    operator() { return rhs < lhs; }
    operator rhs); }
    operator>=() { return !(lhs < rhs); }