词条 | pair |
释义 | 社交应用你有没有过这样的烦恼?自己与情侣的甜言蜜语被其他用户看到,又或者两人之间的私人相片不小心传到公共相册,引来不必要的围观。为了让情侣私人分享信息没有后顾之忧,创业孵化器Y Combinator旗下公司开发出了一款充满爱意的手机应用程序——Pair。 Pair只允许情侣间一对一使用。开始使用时,用户需要拍摄自己的照片和一段视频,然后再向自己的另一半发送邀请。对方接受后,双方便可以在Pair中进行各种交流与分享。Pair让喜欢成双成对的情侣们,有机会把爱的二人世界从现实生活延伸至网络虚拟空间。比如Pair允许情侣之间不受限制地发送甜言蜜语(可以像微信一样,发送语音、文字、图片、位置)。 看到这里,也许你会认为Pair不过是Facebook、Instagram或者Path上进行照片和信息分享的私密亲昵加强版。其实并非如此,它包含了情侣专属的功能。例如,其中包含的叫做“拇指吻”的甜蜜想法。情侣在屏幕上按下拇指,用户拇指接触屏幕的任何区域时,它都会显示指纹,当两个拇指对齐时,两人的手机就会震动起来。同时Pair还提供了一个绘画功能,情侣可以通过简单的手绘内容传达浓浓爱意。这些均是为身处爱情世界的情侣们创造的独特体验,Pair的用意是让情侣们,特别是异地恋中的情侣们,在这里找到心心相印的美好。 相对于Facebook与Path,Pair的盈利模式还未知。目前Pair还是免费使用,参考韩国创业公司VCNC的情侣社交应用Between的做法,Pair可能会瞄准情侣们每月的“恋爱经费”展开行动,围绕情侣的喜好与相关商家进行合作。比如支持优惠券和商家提供的其他服务,帮助营销人员将商业信息传达给那些年轻的寻找浪漫体验的理想客户。以后像是电影公司提供的优惠情侣电影票,或者某家公司提供的一个8折情侣晚餐等服务信息,或许都会在这款应用上出现。 类模板模板的<class T1,类T2>结构一双; 值的一对 这一类夫妇一起一双值,这可能是不同类型(T1和T2)。第一和第二的市民可通过个人价值。 类的定义为: 模板<class T1,类T2>结构对{的typedef T1的first_type的typedef T2 second_type; T1,T2次;一双一双():首先(T1的())((T2)){}(常量T1&X,常量T2的&Y):第一(X),第二(Y){}模板<class U,类V>对(常量对<U,V>&P):第一次(p.first),第二(p.second){ } 成员 first_type,second_type Alises分别模板参数T1和T2。第一,第二个数据成员包含第一次和第二次在对存储的值。对()构造一个对每个其成员第一次和第二次各自的默认构造函数构造对象。一双(const的T1,X,常数T2&Y)构造一个与第一和第二分别初始化x和y,其成员对对象。模板的<class U,类V>对(常量对<U,V>&P)构造一个其成员和p中相应的元素初始化为第二对的对象,必须是任何隐式转换类型(包括情侣同类型)。 全球运营 头<utility>也重载关系运算符==,<=,>,> =,<=,从而能够直接比较对同一类型的对象: 两对物体进行比较,如果在这两个对象的第一要素比较彼此相等,双方的第二个元素也比较彼此平等-他们都必须符合平等。 不平等的比较(<,>),第一要素相比,第一,只有当不平等比较不为他们的真实,第二个元素进行比较。 MSDN解释pair <utility> template <class T1, class T2> struct pair; Pair of values This class couples together a pair of values, which may be of different types (T1 and T2). The individual values can be accessed through the public members first and second. The class is defined as: template <class T1, class T2> struct pair { typedef T1 first_type; typedef T2 second_type; T1 first; T2 second; pair() : first(T1()), second(T2()) {} pair(const T1& x, const T2& y) : first(x), second(y) {} template <class U, class V> pair (const pair<U,V> &p) : first(p.first), second(p.second) { } } Memberfirst_type, second_type Alises of template parameters T1 and T2 respectively. first, second Data members containing the first and second values stored in the pair. pair() Constructs a pair object with each of its members first and second constructed with their respective default constructors. pair(const T1& x, const T2& y) Constructs a pair object with its members first and second initialized to x and y, respectively. template <class U, class V> pair (const pair<U,V> &p) Constructs a pair object with its members first and second initialized to the corresponding elements in p, which must be of any couple of implicitly-convertible types (including the same types). Global operatorThe header <utility> also overloads the relational operators ==, <, !=, >, >= and <= , so as to be able to compare pair objects of the same type directly: Two pair objects are compared equal if the first elements in both objects compare equal to each other and both second elements also compare equal to each other - they all have to match. In inequality comparisons (<, >), the first elements are compared first, and only if the inequality comparison is not true for them, the second elements are compared. |
随便看 |
百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。