// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 namespace boost { template struct range_mutable_iterator> { typedef T* type; }; template struct range_const_iterator> { typedef const T* type; }; } // namespace boost template inline T* range_begin( Tab& tab ) { if( tab.Count() > 0 ) { return tab.Addr( 0 ); } else { return 0; } } template inline const T* range_begin( const Tab& tab ) { if( tab.Count() > 0 ) { return tab.Addr( 0 ); } else { return 0; } } template inline T* range_end( Tab& tab ) { if( tab.Count() > 0 ) { return tab.Addr( 0 ) + tab.Count(); } else { return 0; } } template inline const T* range_end( const Tab& tab ) { if( tab.Count() > 0 ) { return tab.Addr( 0 ) + tab.Count(); } else { return 0; } }