Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/util/util_set.h
| Show All 12 Lines | |||||
| * See the License for the specific language governing permissions and | * See the License for the specific language governing permissions and | ||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef __UTIL_SET_H__ | #ifndef __UTIL_SET_H__ | ||||
| #define __UTIL_SET_H__ | #define __UTIL_SET_H__ | ||||
| #include <set> | #include <set> | ||||
| #if (__cplusplus > 199711L) || (defined(_MSC_VER) && _MSC_VER >= 1800) | |||||
| # include <unordered_set> | |||||
| #else | |||||
| #include <boost/tr1/unordered_set.hpp> | # include <boost/tr1/unordered_set.hpp> | ||||
| #endif | |||||
| CCL_NAMESPACE_BEGIN | CCL_NAMESPACE_BEGIN | ||||
| using std::set; | using std::set; | ||||
| #if (__cplusplus > 199711L) || (defined(_MSC_VER) && _MSC_VER >= 1800) | |||||
| using std::unordered_set; | |||||
| #else | |||||
| using std::tr1::unordered_set; | using std::tr1::unordered_set; | ||||
| #endif | |||||
| CCL_NAMESPACE_END | CCL_NAMESPACE_END | ||||
| #endif /* __UTIL_SET_H__ */ | #endif /* __UTIL_SET_H__ */ | ||||