MyContainer Class

template <typename T> class MyContainer

A container class for testing template parameter type matching. More...

Header: #include <template_sugar.h>

Public Functions

void append(const T &value)
void prepend(T value)
void replace(int index, const T &value)
MyContainer<T> operator+(const MyContainer<T> &other) const

Detailed Description

T is the element type stored in the container.

MyContainer exercises the code path in findNodeForCursor where template parameter types must match between header parsing and \fn re-parsing.

Member Function Documentation

void MyContainer::append(const T &value)

Appends value to the container.

void MyContainer::prepend(T value)

Prepends value to the container.

void MyContainer::replace(int index, const T &value)

Replaces the item at index with value.

MyContainer<T> MyContainer::operator+(const MyContainer<T> &other) const

Returns a container that is the concatenation of this container and other.