[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Using 'auto' to replace extremely long typedefs
From: |
Rik |
Subject: |
Using 'auto' to replace extremely long typedefs |
Date: |
Fri, 10 Jun 2016 17:35:44 -0700 |
jwe,
Since we're using bits and pieces of C++11, do you object to replacing some
really long typedefs with the auto keyword?
An example from dynamic-ld.cc:
typedef std::list<octave::dynamic_library>::const_iterator const_iterator;
coupled with
for (const_iterator p = lib_list.begin (); p != lib_list.end (); p++)
This could be shortened to the single for statement
for (auto p = lib_list.cbegin (); p != lib_list.cend (); p++)
--Rik
- Using 'auto' to replace extremely long typedefs,
Rik <=