
    #include <functional>
    #include <new>
     
    int main() {
        typedef void*(*newptr_type)(std::size_t);  
        typedef void(*delptr_type)(void*);        
        auto al = std::bind<void*>(newptr_type(::operator new), sizeof(char)*100);   
        auto dl = delptr_type(::operator delete);    
  
        auto field = (char*)al();
        dl(field);
    }

    void othermain() { 
        auto al = [](){return new char[100];};
        auto dl = [](char* p){delete[] p;};
  
        auto field = (char*)al();
        dl(field);
    }