---
layout: "default"
title: "AnyBidirectionalIndex"
description: "Swift documentation for 'AnyBidirectionalIndex': A wrapper over an underlying BidirectionalIndexType that hides
the specific underlying type."
keywords: "AnyBidirectionalIndex,struct,swift,documentation,advancedBy,advancedBy,distanceTo,predecessor,successor,Distance"
root: "/v2.1"
---

<div class="intro-declaration"><code class="language-swift">struct AnyBidirectionalIndex</code></div>

<div class="discussion comment">
    <p>A wrapper over 