ITK  5.0.0
Insight Segmentation and Registration Toolkit
WikiExamples/SimpleOperations/Offset.cxx
#include "itkIndex.h"
#include "itkOffset.h"
#include <iostream>
int main( int, char* [] )
{
index[0] = 5;
index[1] = 5;
offset[0] = 1;
offset[1] = 1;
std::cout << offset << std::endl;
std::cout << index + offset << std::endl;
return EXIT_SUCCESS;
}