class cv::cuda::GpuMat::Allocator

#include <cuda.hpp>

class Allocator
{
public:
    // methods

    virtual
    bool
    allocate(
        GpuMat* mat,
        int rows,
        int cols,
        size_t elemSize
        ) = 0;

    virtual
    void
    free(GpuMat* mat) = 0;
};