LibLapin's logo

LibLapin

Container





This module is not a real module, it only serves as header for all containers.

Containers are t‌_‌b‌u‌n‌n‌y‌_‌a‌s‌t‌a‌c‌k, t‌_‌b‌u‌n‌n‌y‌_‌b‌i‌t‌f‌i‌e‌l‌d, t‌_‌b‌u‌n‌n‌y‌_‌l‌i‌s‌t, t‌_‌b‌u‌n‌n‌y‌_‌m‌a‌p, t‌_‌b‌u‌n‌n‌y‌_‌p‌o‌o‌l, t‌_‌b‌u‌n‌n‌y‌_‌q‌u‌e‌u‌e, t‌_‌b‌u‌n‌n‌y‌_‌s‌t‌a‌c‌k and t‌_‌b‌u‌n‌n‌y‌_‌v‌e‌c‌t‌o‌r.

The container module header is lapin/container.h. g

Description

     This function pointer type is used by some containers to create construction mechanisms and complete memory allocation in some ways, like in C++.

Parameters

  • void *data:
         The data to build.
  • void *add_ptr:
         An arbitrary data sent to the constructor. See this parameter as the C++ constructor parameters, data being this.

Return value

Returns true on success. false if something failed.




INDEX


Description

     This function pointer type is used by some containers to create destruction mechanisms and complete memory release in some ways, like in C++.

Parameters

  • void *data:
         The data to delete.

Return value

Returns true on success. false if something failed.




INDEX