Skip to content

Allocator: different alloc-type control #56

Open

Description

@Sunrisepeak
  • 不同分配器间(内存来源)的对象, 禁用移动语义
dstruct::Vector<int, MyAllocator2> test() {

    dstruct::Vector<int, MyAllocator1> vec1;
    dstruct::Vector<int, MyAllocator2> vec2;
    
    // do something
    // vec1 = vec2
    
    return dstruct::Vector<int, MyAllocator2>::convert(vec1);
    return dstruct::Vector<int, MyAllocator2>::copy(vec1);
    return dstruct::copy_to<Vector<int, MyAllocator2>>(vec1);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions