From a9fe75efc484c1db35cc7e0132959863f5bdca03 Mon Sep 17 00:00:00 2001 From: Jitse Niesen Date: Sat, 31 Jul 2010 21:37:29 +0100 Subject: Documentation: Start special topic page on aliasing. --- doc/snippets/TopicAliasing_block.cpp | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 doc/snippets/TopicAliasing_block.cpp (limited to 'doc/snippets/TopicAliasing_block.cpp') diff --git a/doc/snippets/TopicAliasing_block.cpp b/doc/snippets/TopicAliasing_block.cpp new file mode 100644 index 000000000..9e897d01c --- /dev/null +++ b/doc/snippets/TopicAliasing_block.cpp @@ -0,0 +1,5 @@ +Matrix3i mat; +mat << 1, 2, 3, 4, 5, 6, 7, 8, 9; +cout << "Here is the matrix mat:\n" << mat << endl; +mat.bottomRightCorner(2,2) = mat.topLeftCorner(2,2); +cout << "After the assignment, mat = \n" << mat << endl; -- cgit v1.2.3