What's the difference between
and
Enter two words to compare and contrast their definitions, origins, and synonyms to better understand how those words are related.

Mutating vs Nonmutating - What's the difference?

mutating | nonmutating |

As adjectives the difference between mutating and nonmutating

is that mutating is causing or tending to cause mutation while nonmutating is not mutating; not causing a change.

As a verb mutating

is .

mutating

English

Verb

(head)
  • Adjective

    (-)
  • Causing or tending to cause mutation.
  • The mutating process that cells undergo can lead to cancer.
    std::sort is a mutating algorithm.
  • (programming, of an object) Having the ability to make changes to data other than its makeup.
  • The begin() member of std::string returns a mutating iterator.

    nonmutating

    English

    Adjective

    (-)
  • Not mutating; not causing a change.