commit | ca6a4d968e0f75cd2af8ba0155f83c0dd800ddcd | [log] [tgz] |
---|---|---|
author | Vedant Kumar <vsk@apple.com> | Wed May 16 23:20:42 2018 +0000 |
committer | Vedant Kumar <vsk@apple.com> | Wed May 16 23:20:42 2018 +0000 |
tree | d36f34c833fc7afa50c366745c325a55904f136d | |
parent | 309c9c43a7a698b49e1604cec422a0145a602baf [diff] |
[STLExtras] Add size() for ranges, and remove distance() r332057 introduced distance() for ranges. Based on post-commit feedback, this renames distance() to size(). The new size() is also only enabled when the operation is O(1). Differential Revision: https://reviews.llvm.org/D46976 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332551 91177308-0d34-0410-b5e6-96231b3b80d8