• Kevin Modzelewski's avatar
    Avoid allocations in pyElements() · 67943c23
    Kevin Modzelewski authored
    I had added an allocation to deal with the requirements refcounting
    added.  To remove that allocation, I added a "SmallUniquePtr" class
    which is similar to unique_ptr but it allocates the object in-line.
    
    It's a bit tricky to use since if the containing object gets moved around
    then the pointers become invalid.
    67943c23
iterators.cpp 5.47 KB