Iterator vs Mutating - What's the difference?
iterator | mutating |
One which iterates.
(computing) A method capable of performing the same action on every item in a collection.
Causing or tending to cause mutation.
(programming, of an object) Having the ability to make changes to data other than its makeup.
As a noun iterator
is one which iterates.As a verb mutating is
present participle of mutate.As an adjective mutating is
causing or tending to cause mutation.iterator
English
Noun
(wikipedia iterator) (en noun)mutating
English
Verb
(head)Adjective
(-)- The mutating process that cells undergo can lead to cancer.
std::sort
is a mutating algorithm.
- The
begin()
member ofstd::string
returns a mutating iterator.