Merge branch 'swap-indices-methods' into 'master'

rename swap_*s methods to swap_*_indices and make them public

See merge request !26
9 jobs for master in 4 minutes and 5 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
passed #41008
VS2013
VS2013-32-bit

00:00:51

passed #41007
VS2013
VS2013-64-bit

00:00:55

passed #41006
VS2015
VS2015-32-bit

00:01:04

passed #41005
VS2015
VS2015-64-bit

00:01:12

passed #41002
Linux
clang-c++11

00:02:21

passed #41004
Linux
cppcheck

00:00:48

passed #41009
Linux
doc

00:00:19

passed #41001
Linux
gcc-c++11

00:04:05

passed #41003
Apple
macos-c++11

00:02:48