[ create a new paste ] login | about

Link: http://codepad.org/5gVzgYKc    [ raw code | fork ]

C++, pasted on Jun 18:
#include <memory>
#include <iterator>

template<typename T, typename Allocator = std::allocator<T> >
class Carray {
    // ...
    typedef T* pointer;
    typedef pointer iterator;
    // ...
};

namespace std {
    template<typename T, typename Allocator>
    struct iterator_traits<typename Carray<T, Allocator>::iterator> { // line 128
        typedef T value_type;
        typedef typename Allocator::difference_type difference_type;
        typedef typename Allocator::reference reference;
        typedef typename Allocator::pointer pointer;
        typedef typename std::random_access_iterator_tag iterator_category;
    };
}

int main(int argc, char *argv[]) { return 0; }


Output:
No errors or program output.


Create a new paste based on this one


Comments: