Skip to content

Memory allocation #145

Open
Open

Description

@deng-chong

Is the strategy of allocating memory the same as that of STL?

Activity

  1. cameron314 commented on Aug 3, 2023

    @cameron314
    Owner

    It doesn't use standard allocators or throw std::bad_alloc if that's what you're asking, but you can customize the allocation through the traits. The default is malloc/free.

  2. cameron314 commented on Aug 4, 2023

    @cameron314
    Owner

    Oops, was thinking of my MPMC implementation. ReaderWriterQueue also uses malloc/free and does not throw std::bad_alloc, but provides no customization point for changing the allocation implementation.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions