<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Aug 11, 2015 at 2:15 PM, Yaron Keren via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="rtl"><div dir="ltr">I'm not sure how std::equal of two nullptrs should be, is this documented or UB?</div><div dir="ltr"><br></div></div></blockquote><div><br></div><div>Well, if you did this:</div><div>  std::equal(nullptr, nullptr, nullptr), you should get true.</div><div><br></div><div>[nullptr,nullptr) is a valid, empty range. </div><div>And an empty range is equal to another empty range.<br></div><div><br></div><div>-- Marshall</div></div></div></div>