Changes in libcfa/src/vec/vec2.hfa [7d61d1c:fd54fef]
- File:
-
- 1 edited
-
libcfa/src/vec/vec2.hfa (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/vec/vec2.hfa
r7d61d1c rfd54fef 1 // 2 // Cforall Version 1.0.0 Copyright (C) 2021 University of Waterloo 3 // 4 // The contents of this file are covered under the licence agreement in the 5 // file "LICENCE" distributed with Cforall. 6 // 7 // io/types.hfa -- 8 // 9 // Author : Dimitry Kobets 10 // Created On : 11 // Last Modified By : 12 // Last Modified On : 13 // Update Count : 14 // 15 1 16 #pragma once 2 17 … … 4 19 #include "vec.hfa" 5 20 6 forall ( otypeT) {21 forall (T) { 7 22 struct vec2 { 8 23 T x, y; … … 10 25 } 11 26 12 forall ( otypeT) {27 forall (T) { 13 28 static inline { 14 29 … … 264 279 } 265 280 266 forall( dtype ostype, otypeT | writeable(T, ostype)) {281 forall(ostype &, T | writeable(T, ostype)) { 267 282 ostype & ?|?(ostype & os, vec2(T) v) with (v) { 268 283 return os | '<' | x | ',' | y | '>';
Note:
See TracChangeset
for help on using the changeset viewer.