It&#x27;s quite common actually. Usually in the context of something like &quot;swap element &#x27;n&#x27; with the last element in this vector&quot; without any check to see if &#x27;n&#x27; is already the last element, because checking for that condition just to avoid a harmless no-op in the uncommon case is ugly and slower in the common case.